### main

while true
  n = gets.strip.to_i
  break if n == 0

  bs = gets.strip.split(' ').map{|s| s.to_i}

  ok = false
  num = 0
  for b in bs
    if b >= 1
      num += 1
      ok = true if b >= 2
    end
  end

  if ok
    puts (num + 1)
  else
    puts "NA"
  end
end