i=1 for _ in map(int,input().split()): if _ != i:print(i);break i+=1 else:print(10)