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