B = set(map(int, input().split())) all = set(range(1, 11)) print(*all - B)