8 lines
176 B
Python
8 lines
176 B
Python
|
#!/usr/bin/env python3
|
||
|
import sys
|
||
|
|
||
|
lines = [l.strip().split(" ") for l in sys.stdin.readlines()]
|
||
|
|
||
|
print(sum([len(l)==len(set("".join(sorted(s)) for s in l)) for l in lines]))
|
||
|
|