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