var val = 1024; while val > 0 { writeln(val); val /= 2; }