import java.util.Scanner; class A { static Scanner s = new Scanner(System.in); static String w = "w"; public static void main(String[] args) { String in = s.nextLine(); if(in.startsWith(w)) in.replaceFirst("w+", ""); String ww = w; if(in.matches("w+")||!in.contains("w")) { System.out.println(); return; } while(in.contains(ww+w)) { ww+=w; } String[] ss = in.split(ww); for(String s:ss) { if(!s.isEmpty()) System.out.println(s.substring(s.lastIndexOf(w)+1)); } } }