#include<iostream>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>c;

	int d=(a>b ? a : b);
	int max=(d>c ? d : c);
	int e=(a<b ? a : b);
	int min=(e<c ? e : c);

	cout<<"max: "<<max<<endl;
	cout<<"min: "<<min<<endl;

	system("pause");
	return 0;
}