B=list(map(int,input().split())) for i in range(len(B)-1): if B[i]-B[i+1]!=-1: print(B[i]+1)