input = gets.chomp count = 0 for i in 0..99 if input[i] == "n" count += 1 end end puts count