#include<bits/stdc++.h>
using namespace std;
int main(){
int x,y,z;
cin>>x>>y>>z;
if (x<y<z) cout<<z<<endl;
else if (x<z<y) cout<<y<<endl;
else cout<<x<<endl;
return 0;
}
/**************************************************************
Problem: 1039
User: xiaojingxuan
Language: C++
Result: Wrong Answer
****************************************************************/