#include <bits/stdc++.h>
#include <assert.h>

using namespace std;

int main()
{
	int m, f, b;
	cin >> m >> f >> b;
	if (m + f < b)
		cout << "NA" << endl;
	else
		cout << max(0,b - m) << endl;

	return 0;
}

