LearnPy Hub
← Tuples & Sets problems
Hard

Same Letters Groups

Read a list of words. Words with exactly the same set of letters belong to one group. Print the number of groups.

Input

One line of words.

Output

A count.

Sample 1

Input
abc cab bca aab
Output
2

Sample 2

Input
a b c
Output
3
solution.py
Output appears here
Same Letters Groups · Python practice problem · LearnPy Hub