ll = list(map(float, input().split()))
sum = 0.0
for i in ll:
    sum += i
print('{:.2f} {:.2f}'.format(sum, sum/len(ll)))