#include <bits/stdc++.h>
using namespace std;

#define for_(i,a,b) for(int i=a;i<b;++i)

int main() {
	int N;

	while (scanf("%d", &N), N) {		
		int ans = 1, f = 0;
		
		for_(i,0,N) {
			int k; scanf("%d", &k);
			if (k) ++ans;
			if (k > 1) f = 1;
		}
		
		if (f) printf("%d\n", ans);
		else puts("NA");
	}
	
	return 0;
}