#include using namespace std; int main(int argc, char* argv[]) { int A,B; cin>>A>>B; int ans=0; if (A>B){ //must BC ans=B-A-1+A-1; } cout<