import java.util.Scanner
object Main {
  def main(args:Array[String]) = {
    val sc = new java.util.Scanner(System.in)
    val s: Long = sc.nextLong
    val kehin = List.fill(s.toInt)(sc.next)
    
    val result = kehin.distinct
    
    println(result.length)
    
  }
}