a=[int(x) for x in input().split()] mx=max(a) s=0 for i in range(1,mx+1): if a.count(i)==0: print(i,end="") s=1 if s==0: print(mx+1,end="")