import java.util.Scanner; public class main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); String[] str={""}; int[] scount={0}; int slen = S.length(); String buf = ""; int count =0 ,j=1; for(int i =0;i< slen;i++){ if (S.charAt(i) == 'w'){ count++; j=i+1; for(int k = 0;scount[k]