/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a/b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a%b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a;
scanf("%d",&a);
printf("%lld",(long long int)1+a);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%lld\n",(long long int)a+b);
printf("%lld\n",(long long int)a-b);
printf("%lld\n",(long long int)a*b);
printf("%lld\n",(long long int)a/b);
printf("%lld\n",(long long int)a%b);
printf("%.2f\n",(float)a/b);
return 0;
}
*/
/*
#include <stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%lld\n",(long long int)a+b+c);
printf("%.1f",(float)(a+b+c)/3);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a==b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a<=b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a!=b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a;
scanf("%d",&a);
printf("%d",!a);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a&&b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a||b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",(a&&!b)||(!a&&b));
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",(!a&&!b)||(a&&b));
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",!(a||b));
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a;
scanf("%d",&a);
printf("%d",~a);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a&b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a|b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a^b);
return 0;
}
*/
/*
#include <stdio.h>
int main ()
{
int a,b;
scanf("%d %d",&a,&b);
printf("%d",a>b?a:b);
return 0;
}
*/
#include <stdio.h>
int main ()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
printf("%d",(a<b?a:b)<c?(a<b?a:b):c);
return 0;
}