age_list = input().split(' ')
sum = 0
for i in age_list:
    sum += int(i)
print(sum, '%.1f'%(sum/len(age_list)))