X = input().split() [print(x) for x in range(1,11) if str(x) not in X]