#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 <iostream>

using namespace std;

int main()
{
    int a,b,c,d;
    cin>>a>>b>>c;
    d=a-b+c;
    cout<<d;
    return 0;
}