a = list(map(int, input().split())) odr = [int(i) for i in range(1,11)] for i in a: if i in odr: odr.remove(i) print(odr[0])