n = gets.to_i a = gets.chomp.split(" ").map(&:to_i).sort (a.length - 1).times do |i| if a[i] == a[i+1] a.delete(a[i]) end end puts a.length