fork download
  1. s=input().split(' ')
  2. print(' '.join(e for i,e in enumerate(s)if e not in s[:i]))
Success #stdin #stdout 0.02s 9936KB
stdin
cat dog cat dog bird dog Snake snake Snake
stdout
cat dog bird Snake snake