public class Main {
public static void main(String[] args) {
int a, b, c;
for (a = 0; a < 6; a++) {
for (b = 1; b < 6; b++) {
for (c = 1; c < 7; c=c+5) {
System.out.println(100*a+110*b+12*c);
if(100*a+110*b+12*c==532){
System.out.println(a+":"+b+":"+c);
}
}
}
}
}
}
import java.util.*;
public class Main {
public static void main(String[] args) {
int[] c = {1, 6};
int[] a = {1, 2, 3, 4, 5};
int[] b = a;
for (int i = 0; i < 5; ++i) {
for (int j = 0; j < 5; ++j) {
int partial = a[i] * 100 + b[j] * 110;
if (partial + c[0]*12 == 532 || partial + c[1]*12 == 532)
System.out.println(a[i]+" "+b[j]+" "+(532-partial)/12);
}
}
}
}