func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n, a, b, d = 0;     cin >> n >> a >> b;     n = n - a;     if (n <= b) {       cout << n;     } else {       cout << b + 1;     }     return 0;   }   