l = sorted([input() for _ in range(3)]) print(l[1])