a=[] while 1: for s in raw_input().split(): if s not in a:print s a+=[s]