#53636: 限時答案!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


21422@chc.edu.tw (殷沒牙)


input();
print(len(set(input().split())))