#include <iostream>
#include <vector>
int main()
{
int decimal = 1234;
std::vector<int> binary;
int i = 0;
int value = decimal;
while( value > 0 )
{
binary.push_back(value & 1);
value >>= 1;
++i;
}
for( std::vector<int>::reverse_iterator it = binary.rbegin(); it != binary.rend(); ++it )
std::cout << *it;
return (0);
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8dmVjdG9yPgoKaW50IG1haW4oKQp7CglpbnQgZGVjaW1hbCA9IDEyMzQ7CglzdGQ6OnZlY3RvcjxpbnQ+IGJpbmFyeTsKCQoJaW50IGkgPSAwOwoJaW50IHZhbHVlID0gZGVjaW1hbDsKCXdoaWxlKCB2YWx1ZSA+IDAgKQoJewogICAgCWJpbmFyeS5wdXNoX2JhY2sodmFsdWUgJiAxKTsKICAgIAl2YWx1ZSA+Pj0gMTsKICAgIAkrK2k7Cgl9CgkKCQoJZm9yKCBzdGQ6OnZlY3RvcjxpbnQ+OjpyZXZlcnNlX2l0ZXJhdG9yIGl0ID0gYmluYXJ5LnJiZWdpbigpOyBpdCAhPSBiaW5hcnkucmVuZCgpOyArK2l0ICkKCQlzdGQ6OmNvdXQgPDwgKml0OwoJCQoJcmV0dXJuICgwKTsKfQ==