import scala.io.StdIn.{readInt,readLine}
import scala.collection.mutable.ArrayBuffer

object Main {
  def main(args:Array[String]) = {
    var n = 0
    val b = new ArrayBuffer[String]
    while({n=readInt;n} != 0) {
      val l = readLine.split(" ").map(_.toInt)
      if(l.filter(_>=2).length==0) b+="NA"
      else b+=(l.filter(_>=1).length+1).toString
    }
    println(b.mkString("\n"))
  }
}