s = [input() for _ in range(3)] s.sort() ans = s[1] print(ans)