public class Main {
public static void main(String[] args) {
for(int i = 10000; i < 100000; i++) {
//一共就 1*2345,12*3456,123*45,1234*5 这四种类型
int x1 = i / 10000 * (i % 10000);
int x2 = i / 1000 * (i % 1000);
int x3 = i / 100 * (i % 100);
int x4 = i / 10 * (i % 10);
if(x1 + x2 + x3 + x4 == i) {
System.out.print(i + " ");
}
}
}
}