#include<iostream>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c;
if(a>b)d=a;
else d=b;
if(c<d)
cout<<d<<endl;
else
cout<<c<<endl;
return 0;
}
using namespace std;
int main()
{
int a,b,c,d;
cin>>a>>b>>c;
if(a>b)d=a;
else d=b;
if(c<d)
cout<<d<<endl;
else
cout<<c<<endl;
return 0;
}