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