#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y,z;
cin>>x>>y>>z;
if(x<y) swap(x,y);
if(x<z) swap(x,z);
if(y<z) swap(y,z);
cout<<x+z<<endl;
printf("%.1f",(x+z)/2.0);
}
/**************************************************************
Problem: 1719
User: yangjunwen
Language: C++
Result: Accepted
Time:18 ms
Memory:2072 kb
****************************************************************/