|
|||
DifferentPeter is reading verses, but got unfocused, and started think about a completely different matter: of how many different words a vers have? His thinking is a little bit strange: he takes two words eventually different if there is at least one letter that appears with different frequencies in the words. (otherwise he takes the words equal). Help him to compute that how many eventually different words () are in a given list of words! Input specificationIn the first line there is a number , the number of words in the list. Then lines follow, each with a single word . The words consist only of letters of English alphabet. Output specificationA single line with the number . Constraints
Sample input 1
Sample output 1
Sample input 2
Sample output 2
Sample input 3
Sample output 3
|
|||
University of Debrecen; Faculty of Informatics; v. 09/30/2024 |