#include<bits/stdc++.h>
using namespace std;
using Int = long long;
//INSERT ABOVE HERE
signed main(){
  Int n;
  while(cin>>n,n){
    vector<Int> v(n);
    for(Int i=0;i<n;i++) cin>>v[i];

    if(*max_element(v.begin(),v.end())<=1){
      cout<<"NA"<<endl;
      continue;
    }

    Int ans=1;
    for(Int i=0;i<n;i++) ans+=!!v[i];
    cout<<ans<<endl;
  }
  return 0;
}

