n = int(eval(input()))

results = {eval(input()) for _ in range(n)}

print((len(results)))
import sys

input = sys.stdin.readline





def main():

    n = int(eval(input()))

    items = {input().rstrip() for _ in range(n)}

    print((len(items)))





if __name__ == "__main__":

    main()
n = int(eval(input()))
results = {eval(input()) for _ in range(n)}
print((len(results)))

import sys

input = sys.stdin.readline


def main():
    n = int(eval(input()))
    items = {input().rstrip() for _ in range(n)}
    print((len(items)))


if __name__ == "__main__":
    main()

-n = int(eval(input())) -results = {eval(input()) for _ in range(n)} -print((len(results))) +import sys + +input = sys.stdin.readline + + +def main(): +    n = int(eval(input())) +    items = {input().rstrip() for _ in range(n)} +    print((len(items))) + + +if __name__ == "__main__": +    main()