public class ArmstrongNumbers {
public static void main(String [] args) {
for (int x = 1; x <= 9; x++) {
for (int n = 0; n <= 9; n++) {
for (int t = 0; t <= 9; t++) {
if (((100 * x) + (10 * n) + t) == ((Math.pow(x, 3)) + (Math.pow(n, 3)) + (Math.pow(t, 3)))) {
System.out.println(((100 * x) + (10 * n) + t));
}
}
}
}
}
}