#include <iostream>

using namespace std;

int main() {
	int n;
	while (cin >> n) {
		if (n == 0) {
			break;
		}
		bool hantei = true;
		int a;
		int count = 1;
		for (int i = 0; i < n; i++) {
			cin >> a;
			if (a > 1) {
				hantei = false;
			}
			if (a > 0) {
				count++;
			}
		}
		if (hantei) {
			cout << "NA" << endl;
		} else {
			cout << count << endl;
		}
	}
	return 0;
}