/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone {
while (in.ready()) {
String currentLine
= in.
readLine();
if (trimSize != null) {
currentLine = currentLine.substring(0, trimSize);
}
if (currentLine.startsWith("size:")) {
trimSize
= Integer.
parseInt(currentLine.
substring(5)); }
else {
trimSize = null;
}
System.
out.
println(currentLine
);
}
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lIHsKCglwdWJsaWMgc3RhdGljIHZvaWQgbWFpbiAoU3RyaW5nW10gYXJncykgdGhyb3dzIGphdmEubGFuZy5FeGNlcHRpb24gewoKICAgICAgICBCdWZmZXJlZFJlYWRlciBpbiA9IG5ldyBCdWZmZXJlZFJlYWRlcihuZXcgSW5wdXRTdHJlYW1SZWFkZXIoU3lzdGVtLmluKSk7CiAgICAgICAgCiAgICAgICAgSW50ZWdlciB0cmltU2l6ZSA9IG51bGw7CgogICAgICAgIHdoaWxlIChpbi5yZWFkeSgpKSB7CiAgICAgICAgCQogICAgICAgIAlTdHJpbmcgY3VycmVudExpbmUgPSBpbi5yZWFkTGluZSgpOwoKICAgICAgICAJaWYgKHRyaW1TaXplICE9IG51bGwpIHsKICAgICAgICAgICAgICAgIGN1cnJlbnRMaW5lID0gY3VycmVudExpbmUuc3Vic3RyaW5nKDAsIHRyaW1TaXplKTsKICAgICAgICAJfQoKICAgICAgICAJaWYgKGN1cnJlbnRMaW5lLnN0YXJ0c1dpdGgoInNpemU6IikpIHsKICAgICAgICAJCXRyaW1TaXplID0gSW50ZWdlci5wYXJzZUludChjdXJyZW50TGluZS5zdWJzdHJpbmcoNSkpOwogICAgICAgIAl9CiAgICAgICAgCWVsc2UgewogICAgICAgIAkJdHJpbVNpemUgPSBudWxsOwogICAgICAgIAl9CgogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oY3VycmVudExpbmUpOwoKICAgICAgICB9CgogICAgfQoKfQ==
cXFxcXFxcXFxcXEKd3d3d3d3d3d3d3d3CmVlZWVlZWVlZQpzaXplOjEwCtGC0LXQutGB0YIg0YMg0LrQvtGC0L7RgNC+0LPQviDQvdGD0LbQvdC+INC+0YLRgNC10LfQsNGC0YwgNDAwINGB0LjQvNCy0L7Qu9C+0LIuLi4KcnJycnJycgp0dHR0dHQKeXl5eXl5eXl5
qqqqqqqqqqq
wwwwwwwwwwww
eeeeeeeee
size:10
текст у которого нужно отрезать 400 символов...
rrrrrrr
tttttt
yyyyyyyyy