/* 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
{
public static boolean primo(int num){
for (int i = 2 ; i < num ; ++i){
if (num % i == 0){
return false;
}
}
return true;
}
public static List<Integer> b(int x){
List<Integer> numeros = new ArrayList<Integer>();
int aux = x, i = 2;
while (i <= x) {
if(primo(i) && aux % i == 0){
aux /= i;
numeros.add(i);
} else {
i++;
}
}
return numeros;
}
public static void main
(String[] args
) { }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgYm9vbGVhbiBwcmltbyhpbnQgbnVtKXsKCQkKCQlmb3IgKGludCBpID0gMiA7IGkgPCBudW0gOyArK2kpewoJCQlpZiAobnVtICUgaSA9PSAwKXsKCQkJCXJldHVybiBmYWxzZTsKCQkJfQoJCX0KCQkKCQlyZXR1cm4gdHJ1ZTsKCX0KCXB1YmxpYyBzdGF0aWMgTGlzdDxJbnRlZ2VyPiBiKGludCB4KXsKCSAgIExpc3Q8SW50ZWdlcj4gbnVtZXJvcyA9IG5ldyBBcnJheUxpc3Q8SW50ZWdlcj4oKTsKCSAgIGludCBhdXggPSB4LCBpID0gMjsKCgkgICB3aGlsZSAoaSA8PSB4KSB7CgkgICAgICAgIGlmKHByaW1vKGkpICYmIGF1eCAlIGkgPT0gMCl7CgkgICAgICAgICAgICBhdXggLz0gaTsKCSAgICAgICAgICAgIG51bWVyb3MuYWRkKGkpOwoJICAgICAgICB9IGVsc2UgewoJICAgICAgICAgICAgaSsrOwoJICAgICAgICB9CgkgICB9CgoJICAgcmV0dXJuIG51bWVyb3M7Cgl9CgkKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCQlTeXN0ZW0ub3V0LnByaW50bG4oYigzNikpOwoJfQp9