#!/usr/bin/python

import sys

history = set()
for line in sys.stdin:
    if line in history:
        continue
    history.add(line)
    print line,