B = set(map(int, input().split()))

for i in range(1, 100):
    if i in B:
        continue
    print(i)
    break