process.stdin.resume();
process.stdin.setEncoding('utf8');
// your code goes here
var readline = require("readline")
function uniqFilter() {
var seen = {}
return function(xs) {
return xs.filter(function(x, _, _) {
return (x in seen) ? false : (seen[x] = true)
})
}
}
function main() {
var uniq = uniqFilter()
var rl = readline.createInterface({input: process.stdin,
output: process.stdout})
rl.setPrompt('')
rl.on('line', function(line) {
var words = line.match(/\S+/g) || []
uniq(words).forEach(function(x, _, _) { console.log(x) })
})
}
main()
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQp2YXIgcmVhZGxpbmUgPSByZXF1aXJlKCJyZWFkbGluZSIpCgpmdW5jdGlvbiB1bmlxRmlsdGVyKCkgewogICAgdmFyIHNlZW4gPSB7fQogICAgcmV0dXJuIGZ1bmN0aW9uKHhzKSB7CiAgICAgICAgcmV0dXJuIHhzLmZpbHRlcihmdW5jdGlvbih4LCBfLCBfKSB7CiAgICAgICAgICAgIHJldHVybiAoeCBpbiBzZWVuKSA/IGZhbHNlIDogKHNlZW5beF0gPSB0cnVlKQogICAgICAgIH0pCiAgICB9Cn0KZnVuY3Rpb24gbWFpbigpIHsKICAgIHZhciB1bmlxID0gdW5pcUZpbHRlcigpCiAgICB2YXIgcmwgPSByZWFkbGluZS5jcmVhdGVJbnRlcmZhY2Uoe2lucHV0OiAgcHJvY2Vzcy5zdGRpbiwKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgb3V0cHV0OiBwcm9jZXNzLnN0ZG91dH0pCiAgICBybC5zZXRQcm9tcHQoJycpCiAgICBybC5vbignbGluZScsIGZ1bmN0aW9uKGxpbmUpIHsKICAgICAgICB2YXIgd29yZHMgPSBsaW5lLm1hdGNoKC9cUysvZykgfHwgW10KICAgICAgICB1bmlxKHdvcmRzKS5mb3JFYWNoKGZ1bmN0aW9uKHgsIF8sIF8pIHsgY29uc29sZS5sb2coeCkgfSkKICAgIH0pCn0KbWFpbigpCg==