import java.util.*;
import java.lang.Math;
class HelloWorld {
public static void main
(String[] args
) { ArrayList<Integer> lista = new ArrayList<>();
for (int i = 0; i < 50; i++) {
lista.add(i);
}
lista = seleciona(lista);
for (int i = 0; i < 50; i++) {
System.
out.
println(lista.
get(i
)); }
}
public static ArrayList<Integer> seleciona(ArrayList<Integer> arraylist) {
ArrayList<Integer> temp = new ArrayList<>(arraylist.size());
for (int i = 0; i < arraylist.size(); i++) {
temp.add(arraylist.get(rnd.nextInt(arraylist.size())));
}
return temp;
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLk1hdGg7CgpjbGFzcyBIZWxsb1dvcmxkIHsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB7CgkJIEFycmF5TGlzdDxJbnRlZ2VyPiBsaXN0YSA9IG5ldyBBcnJheUxpc3Q8PigpOwoJCSBmb3IgKGludCBpID0gMDsgaSA8IDUwOyBpKyspIHsKCQkgCWxpc3RhLmFkZChpKTsKCQkgfQoJCSBsaXN0YSA9IHNlbGVjaW9uYShsaXN0YSk7CgkJIGZvciAoaW50IGkgPSAwOyBpIDwgNTA7IGkrKykgewoJCSAJU3lzdGVtLm91dC5wcmludGxuKGxpc3RhLmdldChpKSk7CgkJIH0KCX0KCXB1YmxpYyBzdGF0aWMgQXJyYXlMaXN0PEludGVnZXI+IHNlbGVjaW9uYShBcnJheUxpc3Q8SW50ZWdlcj4gYXJyYXlsaXN0KSB7CgkJUmFuZG9tIHJuZCA9IG5ldyBSYW5kb20oKTsKICAgICAgICBBcnJheUxpc3Q8SW50ZWdlcj4gdGVtcCA9IG5ldyBBcnJheUxpc3Q8PihhcnJheWxpc3Quc2l6ZSgpKTsKICAgICAgICBmb3IgKGludCBpID0gMDsgaSA8IGFycmF5bGlzdC5zaXplKCk7IGkrKykgewogICAgICAgIAl0ZW1wLmFkZChhcnJheWxpc3QuZ2V0KHJuZC5uZXh0SW50KGFycmF5bGlzdC5zaXplKCkpKSk7CiAgICAgICAgfQogICAgICAgIHJldHVybiB0ZW1wOwogICAgfQp9