#include<iostream> #include<cmath> using namespace std; int main(){ int n,z; cin>>n>>z; cout<<min(n,z); return 0; }