let a = Int(readLine()!)!
var k:[String] = []
for i in 0 ..< a {
    var input_line: String = readLine()!
        k.append(input_line)
}
let orderedSet = NSOrderedSet(array: k)
let uniqueValues = orderedSet.array as! [String]
print(uniqueValues) 