public class Test {
public static void main(String[] args) {
int count = 0;
for (int i = 0; i < 200; i++) {
if (i % 3 == 0) {
System.out.printf("%5d", i);
if (count % 5 == 4) {
System.out.println();
}
count++;
}
}
}
}