import sys

age_list = [int(a) for a in input().split()]
total = sum(age_list)
print(total,round(total/len(age_list),1),sep=" ")