class Ideone
{
public static void main
(String[] args
) {
for(int a = 10; a < 100; a++)
for (int b = 1; b < 10; b++)
if (a % b == 0 && a / b == a % 10 * b)
System.
out.
println(a
* 10 + b
); }
}
Y2xhc3MgSWRlb25lCnsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpCiAgICB7CiAgICAgICAgZm9yKGludCBhID0gMTA7IGEgPCAxMDA7IGErKykKICAgICAgICAgICAgZm9yIChpbnQgYiA9IDE7IGIgPCAxMDsgYisrKQogICAgICAgICAgICAgICAgaWYgKGEgJSBiID09IDAgJiYgYSAvIGIgPT0gYSAlIDEwICogYikKICAgICAgICAgICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oYSAqIDEwICsgYik7CiAgICB9Cn0=