arr = list(map(int,input().split())) if 10 not in arr: print(10) else: for x in range(len(arr)): if arr[x] != x + 1: print(x+1) break