#include <bits/stdc++.h>
using namespace std;
 
int main(){
    int n,a,b;
  	cin>>n>>a>>b;
    cout<<n-a+b<<endl;
 
    return 0;
}
#include<iostream>
#include<cmath>
#include<bits/stdc++.h>
#include<string.h>
using namespace std;
typedef  long long int ll;
const ll maxn=1e15;
const ll mod=1e9+7;
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	ll n,a,b;
	cin>>n>>a>>b;
	cout<<(n-a)+b<<"\n";
    cerr<<"\nTime elapsed:"<< 1000 * clock() / CLOCKS_PER_SEC << "ms\n";
    return 0;
}

