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

int main(){
	int N,k,ans;
	bool flag;
	while(true){
		cin >> N;
		if(N == 0)
			break;
		flag = false;
		ans = 0;
		for(int i=0; i<N; i++){
			cin >> k;
			if(k > 0)
				ans++;
			if(k >= 2)
				flag = true;
		}
		if(flag)
			cout << ans+1 << endl;
		else
			cout << "NA" << endl;
	}
	return 0;
}