process.stdin.resume()
process.stdin.setEncoding('utf8')
var rl = require("readline").createInterface(process.stdin, process.stdout)
String.prototype.words = function() { return this.match(/\S+/g) || [] }
function words(f) { return function (l) { l.words().forEach(f) } }
function uniq(f) {
var seen = {}
return function (w) { if (!(w in seen)) { seen[w] = true; f(w) } }
}
rl.on('line', words(uniq(function(w) { console.log(w) })))
cHJvY2Vzcy5zdGRpbi5yZXN1bWUoKQpwcm9jZXNzLnN0ZGluLnNldEVuY29kaW5nKCd1dGY4JykKdmFyIHJsID0gcmVxdWlyZSgicmVhZGxpbmUiKS5jcmVhdGVJbnRlcmZhY2UocHJvY2Vzcy5zdGRpbiwgcHJvY2Vzcy5zdGRvdXQpCgpTdHJpbmcucHJvdG90eXBlLndvcmRzID0gZnVuY3Rpb24oKSB7IHJldHVybiB0aGlzLm1hdGNoKC9cUysvZykgfHwgW10gfQpmdW5jdGlvbiB3b3JkcyhmKSB7IHJldHVybiBmdW5jdGlvbiAobCkgeyBsLndvcmRzKCkuZm9yRWFjaChmKSB9IH0KZnVuY3Rpb24gdW5pcShmKSB7CiAgICB2YXIgc2VlbiA9IHt9CiAgICByZXR1cm4gZnVuY3Rpb24gKHcpIHsgaWYgKCEodyBpbiBzZWVuKSkgeyBzZWVuW3ddID0gdHJ1ZTsgZih3KSB9IH0KfQpybC5vbignbGluZScsIHdvcmRzKHVuaXEoZnVuY3Rpb24odykgeyBjb25zb2xlLmxvZyh3KSB9KSkp