import static java.lang.System.*; import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { String s = sc.nextLine(); s = s.replaceFirst("^w+",""); s = s.replaceAll("[^w]+$",""); List listA = new LinkedList(Arrays.asList(s.split("w+"))); List listB = new LinkedList(Arrays.asList(s.split("[^w]+"))); listB.remove(0); if (listB.size()==0) { out.println(""); return; } int max = Integer.MIN_VALUE; for (int i=0; i max) { max = listB.get(i).length(); } } for (int i=0; i