b = [int(i) for i in input().split()] for x, y in zip(range(1, 11), b): if x != y: print(x) break else: print('10')