p = list(map(int, input().split(' '))) cnt = 0 luck = False for n in p: if n - cnt != 1: print(n - 1) luck = True break cnt += 1 if not luck: print('10')