s=input().split(' ')print(' '.join(e for i,e in enumerate(s)if e not in s[:i]))
cat dog cat dog bird dog Snake snake Snake
cat dog bird Snake snake
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!