a,b,c = map(int,input().split()) T = a+b+c A = T/3 print(T) print(A)