B = {int(i) for i in (input().split())} print(*{i for i in range(1,11)}.difference(B))