#include <bits/stdc++.h>

using namespace std;

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