loop do
    n = gets.to_i
    break if n == 0
    v = gets.split.map(&:to_i)

    if v.all? {|x| x <= 1}
        puts "NA"
    else
        ans = v.select{|x| x >= 1}.size
        puts ans + 1
    end
end