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