/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.stream.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
List<String> values = new ArrayList<>();
values.add("1000");
values.add("10001111");
values.add("45678901");
values.add("1111");
values.add("22222222");
values.add("2222");
values.add("33333333");
List<Integer> indexes = values.stream().filter(s->s.length()==4).map(values::indexOf).collect(Collectors.toList());
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuc3RyZWFtLio7Ci8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJTGlzdDxTdHJpbmc+IHZhbHVlcyA9IG5ldyBBcnJheUxpc3Q8PigpOwoJCXZhbHVlcy5hZGQoIjEwMDAiKTsKCQl2YWx1ZXMuYWRkKCIxMDAwMTExMSIpOwoJCXZhbHVlcy5hZGQoIjQ1Njc4OTAxIik7CgkJdmFsdWVzLmFkZCgiMTExMSIpOwoJCXZhbHVlcy5hZGQoIjIyMjIyMjIyIik7CgkJdmFsdWVzLmFkZCgiMjIyMiIpOwoJCXZhbHVlcy5hZGQoIjMzMzMzMzMzIik7CgkJTGlzdDxJbnRlZ2VyPiBpbmRleGVzID0gdmFsdWVzLnN0cmVhbSgpLmZpbHRlcihzLT5zLmxlbmd0aCgpPT00KS5tYXAodmFsdWVzOjppbmRleE9mKS5jb2xsZWN0KENvbGxlY3RvcnMudG9MaXN0KCkpOwoJCVN5c3RlbS5vdXQucHJpbnRsbihpbmRleGVzKTsKCX0KfQ==