using namespace std;
int main() {
int a, b, c;
cin >> a;
cin >> b;
cin >> c;
int i,j,t;
int shu[3]={a,b,c};
for(i=0;i<=2;i++){
for(j=i+1;j<=2;j++){
if(shu[i]>shu[j]){
t=shu[i];
shu[i]=shu[j];
shu[j]=t;
}
}
}
printf("%d\n",shu[2]);
// write your code here......
return 0;
}