// your code goes here
s = stdIn().grabLine()
i = 0
bin = arrayBuffer(100)
dec = arrayBuffer(33)
while i < 100
if s[i] == "0"
bin[i] = 0
else
bin[i] = 1
end
i++
end
i = 0
while i < 33
rem = 0
j = 0
while j < 100
rem *= 2
rem += bin[j]
bin[j] = int(rem / 10)
rem %= 10
j++
end
dec[i] = rem
i++
end
i = 32
str = ""
while i >= 0
str += dec[i]
i--
end
printl(str)
Ly8geW91ciBjb2RlIGdvZXMgaGVyZQpzID0gc3RkSW4oKS5ncmFiTGluZSgpCgppID0gMApiaW4gPSBhcnJheUJ1ZmZlcigxMDApCmRlYyA9IGFycmF5QnVmZmVyKDMzKQp3aGlsZSBpIDwgMTAwCglpZiBzW2ldID09ICIwIgoJCWJpbltpXSA9IDAKCWVsc2UKCQliaW5baV0gPSAxCgllbmQKCWkrKwplbmQKCmkgPSAwCndoaWxlIGkgPCAzMwoJcmVtID0gMAoJaiA9IDAKCXdoaWxlIGogPCAxMDAKCQlyZW0gKj0gMgoJCXJlbSArPSBiaW5bal0KCQliaW5bal0gPSBpbnQocmVtIC8gMTApCgkJcmVtICU9IDEwCgkJaisrCgllbmQKCWRlY1tpXSA9IHJlbQoJaSsrCmVuZAoKaSA9IDMyCnN0ciA9ICIiCndoaWxlIGkgPj0gMAoJc3RyICs9IGRlY1tpXQoJaS0tCmVuZAoKcHJpbnRsKHN0cik=