s={} while 1: for w in raw_input().split(): if w not in s:s[w]=1;print w