import collection.mutable.HashSet
object Main extends App {
  val in = new java.util.Scanner(System.in)
  val N = in.nextInt
  val gifts = new HashSet[String]()
  (1 to N).foreach{_ => gifts += in.next}
  println(gifts.size)
}