B=[int(i) for i in input().split()] #print(l[0]) B.sort() #rint(B) i=0 #for i in range(len(B)): while B[i]==i+1: # print(B[i]) i+=1 # print(B[i]) print(i+1)