#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c;
    float p,z;
    cin>>a>>b>>c;
    z=a+b+c;
    p=z/3;
    printf("%.0f\n%.1f",z,p);

}

/**************************************************************
	Problem: 1602
	User: zhengzihao3
	Language: C++
	Result: Accepted
	Time:8 ms
	Memory:2072 kb
****************************************************************/