1#include <iostream>2using namespace std;3int main(){4 int a,b;5 cin>>a>>b;6 int ans=a;7 if(b<a) {8 ans--;9 }10 cout<<ans;11}