using System;
public class Test
{
public static void Main()
{
int k = 0;
var bytes =BitConverter.GetBytes(k);
string str = Convert.ToBase64String(bytes);
Console.WriteLine(bytes.Length);
Console.WriteLine(str);
int x = BitConverter.ToInt32(Convert.FromBase64String("000000=="), 0);
Console.WriteLine("{0} {1} {2}", k, x, x==k);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgICAgICBpbnQgayA9IDA7CiAgICAgICAgICAgIHZhciBieXRlcyA9Qml0Q29udmVydGVyLkdldEJ5dGVzKGspOwogICAgICAgICAgICBzdHJpbmcgc3RyID0gQ29udmVydC5Ub0Jhc2U2NFN0cmluZyhieXRlcyk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKGJ5dGVzLkxlbmd0aCk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKHN0cik7CiAgICAgICAgICAgIGludCB4ID0gQml0Q29udmVydGVyLlRvSW50MzIoQ29udmVydC5Gcm9tQmFzZTY0U3RyaW5nKCIwMDAwMDA9PSIpLCAwKTsKICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoInswfSB7MX0gezJ9IiwgaywgeCwgeD09ayk7Cgl9Cn0=