#include <stdio.h>
int main(void) {
int inteiro = 3;
int tamanho = sizeof(int) * 8;
char binario[tamanho + 1];
int i = tamanho - 1;
while(i > 0) {
binario[i] = inteiro % 2 + 48;
inteiro /= 2;
i--;
}
binario[tamanho] = '\0';
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgaW50ZWlybyA9IDM7CiAgICBpbnQgdGFtYW5obyA9IHNpemVvZihpbnQpICogODsKICAgIGNoYXIgYmluYXJpb1t0YW1hbmhvICsgMV07CiAgICBpbnQgaSA9IHRhbWFuaG8gLSAxOwogICAgd2hpbGUoaSA+IDApIHsKICAgICAgICBiaW5hcmlvW2ldID0gaW50ZWlybyAlIDIgKyA0ODsKICAgICAgICBpbnRlaXJvIC89IDI7CiAgICAgICAgaS0tOwogICAgfQogICAgYmluYXJpb1t0YW1hbmhvXSA9ICdcMCc7CiAgICBwcmludGYoIiVzIiwgYmluYXJpbyk7CglyZXR1cm4gMDsKfQo=