n = int(input()) list = [] for i in range(n): s = input() if not list: list.append(s) elif list and s not in list: list.append(s) print(len(list))