#include <bits/stdc++.h>







using namespace std;

typedef long long ll;

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);


    ll n;
    cin >> n;
    ll a;
    cin >> a;
    ll b;
    cin >> b;

    cout << n-a+b << '\n';

    return 0;
}

//******\\
||udc321||	 
#include<iostream>
#include<vector>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<queue>
#include<map>
#include<set>
#include<fstream>
#include<cstring>
#include<sstream>
#define ll long long
#define fr(e,r,v) for(ll e=r;e<v;e++)
#define bc(e,r,v) for(ll e=r;e>v;e--)
#define all(n) (n.begin(),n.end())
#define tr(ctn,it) for(typeof(ctn.begin()) it=ctn.begin(); it!=ctn.end();it++) 
#define ft first
#define sd second
#define pb push_back
#define lb lower_bound
#define mpr make_pair
#define db  double
using namespace std;
ll mod=1000000007;
/*mt19937 rng(chrono::steady_clock::now().
time_since_epoch().count());*/

int main()
{		
ll n,a,b;
cin>>n>>a>>b;
cout<<n-a+b<<endl;	 	
}