import std.stdio;
import std.algorithm;
import std.string;
import std.conv;
import std.array;

void main() {
	while (true) {
		auto N = readln.chomp;
		if (N == "0") break;
		auto k = readln.split.map!(to!int).array;
		if (reduce!((a,b)=> a > b ? a : b)(k) < 2) {
			writeln("NA");
			continue;
		}
		int count = filter!((a)=> a != 0)(k).array.length;
		writeln(count + 1);
	}
}