a=input("")
b=a.split()
c=0
for i in range(len(b)):
    b[i]=int(b[i])
    c+=b[i]
d=len(b)
e=float(c/d)
print(c,f"{e:.1f}",sep=" ")