#include <iostream>
#include <algorithm>
using namespace std;

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

