#include<bits/stdc++.h>
using namespace std;
int main()
{
int x,y,z,m;
float n;
cin>>x>>y>>z;
m=x+y+z;
n=m/3.0;
printf("%d\n%.1f",m,n);
}
/**************************************************************
Problem: 1602
User: tangkaixuan
Language: C++
Result: Accepted
Time:9 ms
Memory:2072 kb
****************************************************************/