#include<fstream>
#include<climits>
#include<algorithm>
using namspace std;
ifstream fin("max_min.in");
ofstream fout("max_min.out");
int main()
{ int x,y,u,v,maxim=INT_MIN,minim=INT_MAX;
fin>>x>>y>>u>>v;
maxim=max(max(x,y),max(u,v));
minim=min(min(x,y),min(u,v));
fout<<"maximul="<<maxim<<'\n';
fout<<"minimul="<<minim;
fin.close();fout.close();
}