import sys

a=input().split(" ")
sum=0
for i in a:
    sum=sum+int(i)

print("%d %.1f" %(sum,sum/len(a)))