s=[] while 1: for e in raw_input().split(): if(e in s)-1:print e;s+=e,