n=gets.to_i puts (1..2*n).map{gets}.uniq.size