B_list = list(map(int, input().split())) for i in range(1, 11): if(not(i in B_list)): print(i) break