I=input d={} I() for i in I().split(): d[i]=not(i in d) print(sum(d.values()))