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