#include <iostream>                                                                                                                                                                                                
                                                                                                                                                                                                                   
using namespace std;                                                                                                                                                                                               
                                                                                                                                                                                                                   
int main(){                                                                                                                                                                                                        
                                                                                                                                                                                                                   
  int a,b;                                                                                                                                                                                                         
                                                                                                                                                                                                                   
  cin >> a >> b;                                                                                                                                                                                                   
                                                                                                                                                                                                                   
  if(a > b){                                                                                                                                                                                                       
    cout << a - 1 << "\n";                                                                                                                                                                                         
  }                                                                                                                                                                                                                
  else{                                                                                                                                                                                                            
    cout << a << "\n";                                                                                                                                                                                             
  }                                                                                                                                                                                                                
                                                                                                                                                                                                                   
  return 0;                                                                                                                                                                                                        
}  

Measured memory_bytes: 256