age_list = list(map(int, input().split())) print(f"{sum(age_list)} {sum(age_list) / len(age_list):.1f}")