for a,b in zip(list(map(int,input().split())), range(1,11)): if a != b: print(b) exit() else: print(10)