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) < 2UL) {
			writeln("NA");
			continue;
		}
		auto count = filter!((a)=> a != 0)(k).array.length;
		writeln(count + 1);
	}
}