a = input().split(" ") ls = [str(i) for i in range(1,11)] for i in ls: if i not in a: print(i)