import java.util.*

fun main(args: Array<String>) {
    val scanner = Scanner(System.`in`)
    val num = scanner.nextInt()
    val s = Array(num, {""})
    var sum = num
    for(i in 0..num-1) {
        s[i] = scanner.next()
    }
    s.sort()
    var count = 0
    for(i in 1..num-1) {
        //println(s[i])
        if(s[i] == s[i-1]) {
            count++
            continue
        }
        else{
          if(count != 0){
            sum -= count
            count = 0
          }
        }
    }
    println(sum-count)

}