(ns Atcoder.ABC085-B)
(require '[clojure.string :as str])
(def n (read-string (read-line)))
(def d (loop [input []  count 0]
              (if (= count n)
                input
                (recur (conj input (read-string (read-line))) (inc count)))))


(println (count (set d)))