numbers = list(map(int,input().split())) answers = [i for i in range(1,11)] for j in range(10): if numbers[j] != answers[j]: print(answers[j]) break