n=int(input()) if len(set(input() for i in range(n)))