import Foundation

let input_line: String = readLine()!
let i = Int(input_line)!
var array: [String] = Array()

for count in 0..<i {
  	let b = readLine()!
    array.append(b)
}

array.sort()

var ans: [String] = Array()

for k in array {
    if ans.last != k {
        ans.append(k)
    }
}

print(ans.count)