#include <stdio.h>
#include <stdlib.h>
int main()
{
unsigned long long bin = 0, num = 0, resp = 0, cont = 0;
do
{
bin = (bin * 10) + (num % 2);
num = num / 2;
cont++;
}
while (num > 0);
do
{
cont--;
resp = (resp * 10) + (bin % 2);
bin = (bin - (bin % 2)) / 10;
}
while (cont > 0);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBtYWluKCkKewogICAgdW5zaWduZWQgbG9uZyBsb25nIGJpbiA9IDAsIG51bSA9IDAsIHJlc3AgPSAwLCBjb250ID0gMDsKICAgIHByaW50ZigiZGlnaXRlIHVtIG51bWVyb1xuIik7CiAgICBzY2FuZigiJWxsZCIsICZudW0pOwogICAgZG8KICAgIHsKICAgICAgICBiaW4gPSAoYmluICogMTApICsgKG51bSAlIDIpOwogICAgICAgIG51bSA9IG51bSAvIDI7CiAgICAgICAgY29udCsrOwogICAgfQogICAgd2hpbGUgKG51bSA+IDApOwogICAgZG8KICAgIHsKICAgICAgICBjb250LS07CiAgICAgICAgcmVzcCA9IChyZXNwICogMTApICsgKGJpbiAlIDIpOwogICAgICAgIGJpbiA9IChiaW4gLSAoYmluICUgMikpIC8gMTA7CiAgICB9CiAgICB3aGlsZSAoY29udCA+IDApOwogICAgcHJpbnRmKCIlbGxkIiwgcmVzcCk7CiAgICByZXR1cm4gMDsKfQoK