import java.io.{BufferedOutputStream, BufferedReader, InputStreamReader, PrintWriter}

import scala.collection.mutable

object Main {
  def main(args: Array[String]): Unit = {
    val in = new BufferedReader(new InputStreamReader(System.in))
    val out = new PrintWriter(new BufferedOutputStream(System.out))
    val n = in.readLine().toInt
    val map = mutable.HashSet.empty[String]

    for(_ <- 0 until n) {
      map.add(in.readLine())
    }

    out.println(map.size)
    out.flush()
  }
}
