#include <iostream>
using namespace std;
int a, b, c, minn;
int main()
{
cin >> a >> b >> c;
if(a <= b && b <= c) minn = a;
if(a <= c && c <= b) minn = a;
if(b <= a && a <= c) minn = b;
if(b <= c && c <= a) minn = b;
if(c <= a && a <= b) minn = c;
if(c <= b && b <= a) minn = c;
cout << minn;
return 0;
}