import java.util.Scanner

import scala.io.StdIn._

object Main extends App {

  val n = readInt()
  val s: Set[String] = Array.fill(n)(readLine()).toSet

  def solve() = {
    s.size
  }


  println(solve())

}

