class crazyCounter { public static void main (String... args) { int n = 0; while (n <= 1000) { if ((n & (1 << 5)) == (1 << 5)) { System.out.println(n); } n++; } } }