#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define e endl
#define iff(u,v)  if(abs(u-v)<1e-9)
#define f(i,p,q) for(int i=p;i<q;i++)
#define vi vector<long long>v;
#define tc int t; cin>>t; while(t--)
//#define an long long n; cin>>n; long long a[n]; for(int i=0;i<n;i++) cin>>a[i];
int main()
{   
    //freopen("input.txt","r",stdin); freopen("output.txt","w",stdout);

    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

    ll n,i,j,k=1,x,y,r,c,ans=0,size,sum=0; string s; bool flag;
    // tc{
        
    // }
    cin>>n>>i>>j;
    cout<<n-i+j<<e;
    
}

#include <bits/stdc++.h>
using namespace std;
int main() {
    int N, A, B, sum;
    cin >> N >> A >> B;
    sum = N-A+B;
    cout << sum << endl;
}