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