def solve(items)
  count = 0
  return "NA" if items.all? {|x| x <= 1}
  items.each do |x|
    count += 1 if x >= 1
  end
  count + 1
end
loop do
  n = gets.to_i
  break if n == 0
  puts solve(gets.split(" ").map(&:to_i))
end