#include <bits/stdc++.h> using namespace std; int main() { int m,b=0,c=0,d=0,n=1001; cin>>m; { if(m>d) d=m; if(m<n) n=m; b+=m; n++; } cout<<d<<' '<<n<<' '; cout << fixed << setprecision(3) <<(double)b/n; return 0; }