import math a,b,c = (int(x) for x in input().split()) ans1=a+b+c ans2=math.floor(ans1/3 * 10) / 10 print(ans1,ans2)