from collections import Counter



def inpl(): return list(map(int, input().split()))





N = int(eval(input()))

print((len(Counter([int(eval(input())) for _ in range(N)]))))
def inpl(): return list(map(int, input().split()))





N = int(eval(input()))

print((len({int(eval(input())) for _ in range(N)})))
from collections import Counter


def inpl():
    return list(map(int, input().split()))


N = int(eval(input()))
print((len(Counter([int(eval(input())) for _ in range(N)]))))

def inpl():
    return list(map(int, input().split()))


N = int(eval(input()))
print((len({int(eval(input())) for _ in range(N)})))

-from collections import Counter - - -print((len(Counter([int(eval(input())) for _ in range(N)])))) +print((len({int(eval(input())) for _ in range(N)})))