• + 0 comments

    from collections import Counter n = int(input()) l = [] for i in range(n): word = input() l.append(word) val = Counter(l) print(len(val.keys())) for x,y in val.items(): print(y, end=' ')