t=[] while 1: for i in raw_input().split(): if(i in t)-1:print i;t+=[i]