a = input().split() def del_dubl(a): seen = set() seen_add = seen.add return [x for x in a if not (x in seen or seen_add(x))] print (del_dubl(a))