b = list(map(int, input().split())) a = [1,2,3,4,5,6,7,8,9,10] for i in range(1,11): if i not in b: print(i) break