#include <stdio.h>
int main() {
long long int n, ld,s,multi;
s = 0;
multi = 1;
while (n != 0) {
ld = n % 2;
n = n / 2;
s = s + ld * multi;
multi *= 10;
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBtYWluKCkgewogICAgbG9uZyBsb25nIGludCBuLCBsZCxzLG11bHRpOwogICAgcyA9IDA7CiAgICBtdWx0aSA9IDE7CiAgICBzY2FuZigiJWxsZCIsICZuKTsKCiAgICB3aGlsZSAobiAhPSAwKSB7CiAgICAgICAgbGQgPSBuICUgMjsKICAgICAgICBuID0gbiAvIDI7CiAgICAgICAgcyA9IHMgKyBsZCAqIG11bHRpOwogICAgICAgIG11bHRpICo9IDEwOwogICAgfQoKICAgIHByaW50ZigiJWxsZFxuIiwgcyk7CiAgICByZXR1cm4gMDsKfQoK