#include using namespace std; using ll = long long; #define rep(i,m,n) for(int i=m; i> a1 >> a2 >> a3; cout << min(a1, min(a2, a3)) << endl; return 0; }