#include using namespace std; int main(){ cout << fixed << setprecision(20); double p, q; cin >> p >> q; cout << min(p, q) << endl; }