using System;
public class Test
{
public static void Main()
{
string bin = "1001001";
string final = "";
for (int i = 0; i < bin.Length; i++)
{
int j = bin[i];
final += Math.Pow(j * 10, bin.Length - i);
}
Console.WriteLine(final);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCXN0cmluZyBiaW4gPSAiMTAwMTAwMSI7CiAgICAgICAgc3RyaW5nIGZpbmFsID0gIiI7CiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBiaW4uTGVuZ3RoOyBpKyspCiAgICAgICAgewogICAgICAgICAgICBpbnQgaiA9IGJpbltpXTsKICAgICAgICAgICAgZmluYWwgKz0gTWF0aC5Qb3coaiAqIDEwLCBiaW4uTGVuZ3RoIC0gaSk7CiAgICAgICAgfQogICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGZpbmFsKTsKCX0KfQ==