public class Main{ public static void main(String[] args){ int i, count = 0; String input = new java.util.Scanner(System.in).next(); if(input.charAt(input.length()-1) != 'n')count--; String[] line = input.split("n"); for(i=0;i