/* package whatever; // don't place package name! */
import java.util.*;
import java.util.regex.*;
import java.lang.*;
import java.io.*;
class Ideone {
String s
= "w ww www wwww wwwww wwwwwww wwwwww"; Pattern p = Pattern.compile("\\b\\w{3,5}\\b");
Matcher m = p.matcher(s);
int matches = 0;
while (m.find()){
matches++;
}
if (matches % 2 == 1) {
matches--;
}
m.reset();
int counter = 0;
while (counter++ < matches && m.find()){
m.appendReplacement(ss, "");
}
m.appendTail(ss);
System.
out.
println(ss.
toString()); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS51dGlsLnJlZ2V4Lio7CmltcG9ydCBqYXZhLmxhbmcuKjsKaW1wb3J0IGphdmEuaW8uKjsKCgpjbGFzcyBJZGVvbmUgewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uIHsKCQlTdHJpbmcgcyA9ICJ3IHd3IHd3dyB3d3d3IHd3d3d3IHd3d3d3d3cgd3d3d3d3IjsKICAgICAgICBQYXR0ZXJuIHAgPSBQYXR0ZXJuLmNvbXBpbGUoIlxcYlxcd3szLDV9XFxiIik7CiAgICAgICAgTWF0Y2hlciBtID0gcC5tYXRjaGVyKHMpOwogICAgICAgIGludCBtYXRjaGVzID0gMDsKICAgICAgICB3aGlsZSAobS5maW5kKCkpewogICAgICAgICAgICBtYXRjaGVzKys7CiAgICAgICAgfQogICAgICAgIGlmIChtYXRjaGVzICUgMiA9PSAxKSB7CiAgICAgICAgICAgIG1hdGNoZXMtLTsKICAgICAgICB9CiAgICAgICAgbS5yZXNldCgpOwogICAgICAgIFN0cmluZ0J1ZmZlciBzcyA9IG5ldyBTdHJpbmdCdWZmZXIoKTsKICAgICAgICBpbnQgY291bnRlciA9IDA7CiAgICAgICAgd2hpbGUgKGNvdW50ZXIrKyA8IG1hdGNoZXMgJiYgbS5maW5kKCkpewogICAgICAgICAgICBtLmFwcGVuZFJlcGxhY2VtZW50KHNzLCAiIik7CiAgICAgICAgfQogICAgICAgIG0uYXBwZW5kVGFpbChzcyk7CiAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKHNzLnRvU3RyaW5nKCkpOwoJfQp9