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