#include <stdio.h>
int aaa(int a, int b){
int max;
if(a<b)
max=b;
else
max=a;
return max;
}
int main(void)
{
int max=0;
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
max=aaa(a, b);
max=aaa(max, c);
printf("%d", max);
return 0;
}
int aaa(int a, int b){
int max;
if(a<b)
max=b;
else
max=a;
return max;
}
int main(void)
{
int max=0;
int a, b, c;
scanf("%d %d %d", &a, &b, &c);
max=aaa(a, b);
max=aaa(max, c);
printf("%d", max);
return 0;
}