#include <iostream>
using namespace std;

int main(void) {
	int N, A, B;

	cin >> N >> A >> B;
	N -= A;
	if (N < 0) {
		N = 0;
	}
	N += B;
	
	cout << N << endl;

	return 0;
}
#include <bits/stdc++.h>
using namespace std;
 
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define endl "\n"
#define int long long
 
const int N = 2e5 + 5;

int32_t main()
{
	IOS;
	int a, b, n;
	cin >> n >> a >> b;
	cout << n - a + b;
	return 0;
}