class Solution{ public static void main(String[]$){ char[]v=new java.util.Scanner(System.in).next().toCharArray(); for(int i=0,c=-1,w=0;i=0&&v[i]=='w'&&++w==2)System.out.println(i-c); } } }