#include<iostream>
using namespace std;

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