# include <stdio.h>
# include <math.h>
int main(){
int x, y, z;
scanf("%d %d %d", &x, &y, &z);
if (x > y){ // 若x大于y,则互换
int c = x;
x = y;
y = c;
}
if (x > z){ // 若x大于z,则互换
int c = x;
x = z;
z = c;
}
if (y > z){// 若y大于z,则互换
int c = y;
y = z;
z = c;
}
printf("%d\n", z);
return 0;
}