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