ans = [int(x) for x in range(1, 11)] B = list(map(int, input().split())) for b in B: ans.remove(b) print(*ans)