process.stdin.resume();
process.stdin.setEncoding('utf8');
// your code goes here
var readline = require("readline");
function main() {
var rl = readline.createInterface(process.stdin, process.stdout);
var seen = {};
rl.on('line', function (line) {
var words = line.match(/\S+/g) || [];
words.forEach(function(word) {
if (word in seen) return;
seen[word] = true;
console.log(word);
});
});
}
main()
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKTsKcHJvY2Vzcy5zdGRpbi5zZXRFbmNvZGluZygndXRmOCcpOwoKLy8geW91ciBjb2RlIGdvZXMgaGVyZQp2YXIgcmVhZGxpbmUgPSByZXF1aXJlKCJyZWFkbGluZSIpOwoKZnVuY3Rpb24gbWFpbigpIHsKICAgIHZhciBybCA9IHJlYWRsaW5lLmNyZWF0ZUludGVyZmFjZShwcm9jZXNzLnN0ZGluLCBwcm9jZXNzLnN0ZG91dCk7CiAgICB2YXIgc2VlbiA9IHt9OwogICAgcmwub24oJ2xpbmUnLCBmdW5jdGlvbiAobGluZSkgewogICAgICAgIHZhciB3b3JkcyA9IGxpbmUubWF0Y2goL1xTKy9nKSB8fCBbXTsKICAgICAgICB3b3Jkcy5mb3JFYWNoKGZ1bmN0aW9uKHdvcmQpIHsKICAgICAgICAgICAgaWYgKHdvcmQgaW4gc2VlbikgcmV0dXJuOwogICAgICAgICAgICBzZWVuW3dvcmRdID0gdHJ1ZTsKICAgICAgICAgICAgY29uc29sZS5sb2cod29yZCk7CiAgICAgICAgfSk7CiAgICB9KTsKfQptYWluKCk=