/*************************

		PCK 2012 t1

************************/

/*#include <stdio.h>
int main(){

	int s;
	int sum = 0;
	int i;

	for ( i = 0; i < 10; i++){
		scanf("%d", &s);
		sum += s;
	}

	printf("%d\n", sum);
}*/

/************************

		PCK 2012 t2

************************/
/*
#include <stdio.h>
int main(){

	int b[3];
	int i;
	for ( i = 0; i < 3; i++){
		scanf("%d", &b[i]);
	}

	if (b[2] == 1)
		printf("Open\n");
	else if (b[0] == 1){
		if (b[1] == 1)
			printf("Open\n");
		else
			printf("Close\n");
	}
	else
		printf("Close\n");
}*/

/****************************

		PCK 2012 t3

****************************/
/*
#include <stdio.h>
int main(){

	int n;
	int h[101] = { 0 };
	int i;
	int temp;

	scanf("%d", &n);

	while (n != 0){
		for (i = 0; i < n + 1; i++){
			scanf("%d", &h[i]);
		}

		if ((h[1] - h[0]) + h[1] == h[2]){
			temp = h[1] - h[0];
			for (i = 1; i < n; i++){
				if (h[i] + temp != h[i + 1]){
					printf("%d\n", h[i + 1]);
					break;
				}
			}
		}
		else{
			if ((h[2] - h[1]) + h[2] == h[3]){
				printf("%d\n", h[0]);
			}
			else
				printf("%d\n", h[1]);
		}

		scanf("%d", &n);
	}
}*/


/*************************************

			PCK 2012 t4
						(2??´????±?????????????)
*************************************/
/*
#include <stdio.h>
int main(void)

{

	int n;
	int num[4], l, s, count, i, j, temp;
	scanf("%d", &n);
	while (n != 0000){
		count = 0;
		while (n != 6174){
			num[0] = n / 1000;
			num[1] = (n - num[0] * 1000) / 100;
			num[2] = (n - num[0] * 1000 - num[1] * 100) / 10;
			num[3] = n - num[0] * 1000 - num[1] * 100 - num[2] * 10;
			if (num[0] == num[1] && num[1] == num[2] && num[2] == num[3]) //??¨???????????°???(1111??????7777??????)??????
				break;
			for (i = 0; i<3; i++){
				for (j = i + 1; j<4; j++){
					if (num[i]>num[j]){
						temp = num[i];
						num[i] = num[j];
						num[j] = temp;
					}
				}
			}
			s = num[0] * 1000 + num[1] * 100 + num[2] * 10 + num[3];
			l = num[3] * 1000 + num[2] * 100 + num[1] * 10 + num[0];
			n = l - s;
			count++;
		}
		if (n == 6174 || count>0)
			printf("%d\n", count);
		else
			printf("NA\n");

		scanf("%d", &n);
	}

	return 0;

}*/

/*************************************

			PCK 2012 t5

*************************************/
/*
#include <stdio.h>
#include <algorithm>

int *p, *j;

int bfs(int n,int ){

	return max(n * )
}

int main(){

	int n;

	scanf("%d", &n);
	while (n != 0){

		p = new int[n];
		j = new int[n - 1];

		for (int i = 0; i < n; i++)
			scanf("%d", &p[i]);
		for (int i = 0; i < n - 1; i++)
			scanf("%d", &j[i]);

		scanf("%d", &n);
	}
}*/

//????????????????????????
/*
#include <iostream>
using namespace std;
#include <cstring>
#include <algorithm>

int main(){

	int n;
	int hand[100];

	while (cin >> n && n != 0){

		memset(hand, 0, sizeof(hand));
		int field = 0;
		int num = 0;

		for (int i = 0; i < 100; i++){

			char c;
			cin >> c;
			if (c == 'M') hand[num]++;
			else if (c == 'S'){ field += hand[num] + 1; hand[num] = 0; }
			else { hand[num] += field + 1; field = 0; }
			if (num < n) num++; else num = 0;
		}

		sort(hand, hand + n);

		for (int i = 0; i < n; i++)
			cout << hand[i] << ' ';
		cout << field << endl;
	}
}*/

/*********************************************************************

	pck 2009 t1			?????\?????§???????°??????????????

*********************************************************************/
/*
#include <iostream>
using namespace std;

int main(){

	int s1, s2;

	while (cin >> s1 >> s2 && s1 != 0 && s2 != 0){

		int sum[5];
		int max;
		int num;
		sum[0] = s1 + s2;
		max = sum[0];
		num = 0;
		for (int i = 1; i < 5; i++){
			cin >> s1 >> s2;
			sum[i] = s1 + s2;
			if (max < sum[i]){
				max = sum[i];
				num = i;
			}
		}

		cout << (char)('A' + num) << ' ' << max << endl;
	}
}*/

/******************************************************************************

	pck 2009 t3			?????§??¬?´???°-??????????????????????????????

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

int main(){

	int x, y;
	while (cin >> x >> y && x != 0 && y != 0){

		if (y > x) swap(x, y);
		int count = 0;
		while (y != 0){
			count++;
			x = x % y;
			swap(x, y);
		}

		cout << x << ' ' << count << endl;
	}
}
*/

/************************************************************

		PCK 2013 t3			?????????????????????

************************************************************/

#include <iostream>
using namespace std;

int main(){

	int n;
	while (cin >> n && n != 0){

		int m = n;
		bool flg = false;

		int k;
		for (int i = 0; i < n; i++){
			
			cin >> k;
			if (k >= 2) flg = true;
			if (k == 0) m--;
		}

		if (flg)
			cout << m + 1 << endl;
		else cout << "NA" << endl;
	}
}

Measured memory_bytes: 1160