#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define rep(i,a)  for(ll i=0; i< a; i++)
#define rep1(i,a)   for(ll i = 1; i< a; i++)
#define foi(i, a, b)    for(ll i = a; i<b ; i++)
#define fod(i, a, b)    for(ll i = a; i>=b ; i--)
#define max3(a, b, c)   max(max(a, b), c)
#define min3(a, b, c)   min(min(a, b), c)
#define MAX 1000005
#define MOD 1000000007

ll findgcd(ll n,ll m){
    return __gcd(n,m);
}
ll findlcm(ll n,ll m){
    return (n*m)/findgcd(n,m);
}

ll nodig(ll n){
    int ans =0;
    while(n!=0){
        ans+=1;
        n=n/10;
    }
    return ans;
}


int main(){
    ios::sync_with_stdio(0);
    cin.tie(0);    
    int n,a,b;
    cin>>n>>a>>b;
    cout<<n-a+b<<"\n";
return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
int main() {
  
  int N = 0 ,A = 0 ,B = 0;
  
  cin >> N >> A >> B;
  
  cout<< N - A + B << endl;

}