import os L=[] for w in os.read(0,1e5).split(): if not w in L:L+=[w];print w