using System;
public class Test
{
public static void Main()
{
string s = Console.ReadLine();
long k = Int64.Parse(s);
string str = Convert.ToBase64String(BitConverter.GetBytes(k));
Console.WriteLine(str);
long x = BitConverter.ToInt64(Convert.FromBase64String(str), 0);
Console.WriteLine("{0} {1} {2}", k, x, x==k);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCSAgICBzdHJpbmcgcyA9IENvbnNvbGUuUmVhZExpbmUoKTsgCiAgICAgICAgICAgIGxvbmcgayA9IEludDY0LlBhcnNlKHMpOwogICAgICAgICAgICBzdHJpbmcgc3RyID0gQ29udmVydC5Ub0Jhc2U2NFN0cmluZyhCaXRDb252ZXJ0ZXIuR2V0Qnl0ZXMoaykpOwogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShzdHIpOwogICAgICAgICAgICBsb25nIHggPSBCaXRDb252ZXJ0ZXIuVG9JbnQ2NChDb252ZXJ0LkZyb21CYXNlNjRTdHJpbmcoc3RyKSwgMCk7CiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKCJ7MH0gezF9IHsyfSIsIGssIHgsIHg9PWspOwoJfQp9