#include <iostream>
using namespace std;

int main() {
	int a,b,c;
	cin>>a>>b>>c;
	cout<<a-b+c;
	return 0;
}
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
#define MAX 100
#define THOU 1000
#define FIVEMAX 100000
#define NINEMAX 1000000000
#define TWEMAX 1000000000000
#define rep(i,n) for (int i=0;i<n;i++)
#define drep(i,n) for(int i=n-1;i>=0;i--)
#define arep(i,a,n) for(int i=a;i<n;i++)
#define darep(i,a,n) for(int i=n;i>=a;i--)
template<class T>inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T>inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const ll INF=1LL<<60;
#define yn {puts("Yes");}else{puts("No");}

int main(){
  int n,a,b;
  int ans;
  cin>>n>>a>>b;

  ans=n-a+b;
  
  cout<<ans<<endl;
  return 0;
  }