user_input = input().split() print(int(sum(map(int, user_input)) / len(user_input)), max(map(int, user_input)))