implicit none
integer:: n,i
integer,allocatable,dimension(:):: d
integer,dimension(100):: count

read(5,*) n
allocate(d(n))

count=0

do i=1,n
    read(5,*) d(i)
    count(d(i))=1
enddo

write(6,*) sum(count)

end
