using System;
public class Test
{
public static Main() : void
{
def s = System.Console.ReadLine();
def arr : array[int] = array(150);
for(mutable i = 55; i>=0;i--) {
arr[i] = 0;
}
for(mutable n = 0; n < 100; ++n) {
for(mutable i = 50; i>=0;i--) {
arr[i] *= 2;
arr[i+1] += arr[i] / 10;
arr[i] %= 10;
}
if(s[n]=='1'){
arr[0] += 1;
} else {
}
}
for(mutable i = 50; i>=0;i--) {
System.Console.Write("{0}",arr[i]);
}
}
}
dXNpbmcgU3lzdGVtOwpwdWJsaWMgY2xhc3MgVGVzdAp7CglwdWJsaWMgc3RhdGljIE1haW4oKSA6IHZvaWQKCXsKCQlkZWYgcyA9IFN5c3RlbS5Db25zb2xlLlJlYWRMaW5lKCk7CgkJZGVmIGFyciA6IGFycmF5W2ludF0gPSBhcnJheSgxNTApOwoJCWZvcihtdXRhYmxlIGkgPSA1NTsgaT49MDtpLS0pIHsKCQkJYXJyW2ldID0gMDsKCQl9CgkJZm9yKG11dGFibGUgbiA9IDA7IG4gPCAxMDA7ICsrbikgewoJCQlmb3IobXV0YWJsZSBpID0gNTA7IGk+PTA7aS0tKSB7CgkJCQlhcnJbaV0gKj0gMjsKCQkJCWFycltpKzFdICs9IGFycltpXSAvIDEwOwoJCQkJYXJyW2ldICU9IDEwOwogIAkJCX0KICAgCQkJaWYoc1tuXT09JzEnKXsKICAJCQkgIGFyclswXSArPSAxOwogIAkJCX0gZWxzZSB7CiAgCQkJfQoJCX0KCQlmb3IobXV0YWJsZSBpID0gNTA7IGk+PTA7aS0tKSB7CiAgICAJCVN5c3RlbS5Db25zb2xlLldyaXRlKCJ7MH0iLGFycltpXSk7CiAgICAJfQoJfQp9