#include <iostream>
#define MAX_N 10000

using namespace std;

int N;
int k[MAX_N];

//void solve();

int main()
{
	while (cin>>N&&N) {
		//for (int i=0; i<N; i++) cin>>k[i];
		//solve();
		int ans=N+1,t;
		bool check=false;
		for (int i=0; i<N; i++) {
			cin>>t;
			if (t==0) ans--;
			else if (t>1) check=true;
		}
		if (check) {
			cout<<ans<<endl;
		} else {
			cout<<"NA"<<endl;
		}
	}
}