B = set(list(map(int,input().split()))) correct = set([i for i in range(1,11)]) ans = correct-B print(*ans)