package no345; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); int n = s.length(); int min = Integer.MAX_VALUE; for(int i=0;i= 1 && s.charAt(i) == 'w') { state++; } } return state >= 3; } }