module Main where

import Control.Applicative
import Control.Monad
import Data.List

main :: IO ()
main = do
    n <- readLn
    ds <- replicateM n readLn :: IO [Int]
    let ds' = fmap head . group . sort $ ds
    print (length ds')