#include<bits/stdc++.h>
#define w(x)            int x; cin>>x; for(int tc=1;tc<=x;tc++)
#define trace(x) 		cerr<<#x<<": "<<x<<" "<<endl;
#define trace1(x,y)		cerr<<#x<<": "<<x<<" "<<endl;cerr<<#y<<": "<<y<<" "<<endl;
#define FIO             ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long
#define pb push_back
#define endl "\n"
#define mod 1000000007
#define inp(x) cin>>x;
#define f first
#define s second
#define inf 1e18

using namespace std;
void solve(int tc) {
	int a, b, c;
	cin >> a >> b >> c;
	cout << a - b + c << endl;

}

int32_t main() {
	FIO
#ifndef ONLINE_JUDGE
	freopen("in.txt", "r", stdin);
	freopen("out.txt", "w", stdout);
#endif
	// w(x) {
	solve(1);
	// }
	return 0;
}
#pragma GCC optimize("Ofast") 
#include <bits/stdc++.h> // -_-bruh u copying mah code?!
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp> 
#include <ext/pb_ds/detail/standard_policies.hpp> 
using namespace std;
#define lli long long int
#define i int
#define cr char
#define f float
#define uns unsigned
#define input(x) cin >>x
#define output(x) cout <<x
#define space() cout <<endl
#define gc getchar_unlocked 
#define vi(x) vector<x>
#define loop(I,N) for(lli I=0;I<N;I++)
#define pb push_back 
#define mp make_pair 
#define F first 
#define S second 
#define PI 3.1415926535897932384626 
const i mod = 1000000007; 
#define Fill(a,v) memset(a,v,sizeof(a)) 
#define you -> Noob
//written by Aden Frost
void fastaf(void)
{
    ios_base::sync_with_stdio(false); 
    cin.tie(NULL); 
}
void solve(void)
{
    lli N,a,b;
    input(N)>>a>>b;
    output(N-a+b);
}
int main()
{
    fastaf();
   // i T;
    //input (T);
    //while(T--)
    //{
       solve();
       space();
    //}
    return 0;
}