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 = in.replaceFirst("w+", ""); in = in.substring(0, in.lastIndexOf(w)+1); if(!in.contains(w)) { System.out.println(); return; } String ww = w; while(in.contains(ww+w)) { ww+=w; } String[] ss = in.split(ww); for(String s:ss) { System.out.println(s.substring(s.lastIndexOf(w)+1)); } } }