import java.util.Scanner


object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n = sc.nextInt()

    val s = Vector.fill(n)(sc.next())

    println(s.distinct.length)
  }
}
