#include <stdio.h>
int main()
{
char buf[32+1];
unsigned u;
int n = 0;
if (u == 0) {
return 0;
}
while (u) {
buf[n++] = '0' + (u & 1);
u >>= 1;
}
while (0 < n) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbigpCnsKCWNoYXIgYnVmWzMyKzFdOwoJdW5zaWduZWQgdTsKCWludCBuID0gMDsKCglzY2FuZigiJXUiLCAmdSk7CglpZiAodSA9PSAwKSB7CgkJcHJpbnRmKCIwXG4iKTsKCQlyZXR1cm4gMDsKCX0KCgl3aGlsZSAodSkgewoJCWJ1ZltuKytdID0gJzAnICsgKHUgJiAxKTsKCQl1ID4+PSAxOwoJfQoKCXdoaWxlICgwIDwgbikgewoJCXByaW50ZigiJWMiLCBidWZbLS1uXSk7Cgl9CglwcmludGYoIlxuIik7CglyZXR1cm4gMDsKfQo=