using System;
public class Test
{
public static void Main()
{
string str = "1234";
char[] array = str.ToCharArray();
string final = "";
foreach (var i in array)
{
string hex = String.Format("{0:X}", Convert.ToInt32(i));
final += hex.Insert(0, "0X") + " ";
}
final = final.TrimEnd();
Console.WriteLine(final);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCSAgICAgICAgc3RyaW5nIHN0ciA9ICIxMjM0IjsKICAgICAgICAgICAgICAgICAgICAgICAgY2hhcltdIGFycmF5ID0gc3RyLlRvQ2hhckFycmF5KCk7CiAgICAgICAgICAgICAgICAgICAgICAgIHN0cmluZyBmaW5hbCA9ICIiOwogICAgICAgICAgICAgICAgICAgICAgICBmb3JlYWNoICh2YXIgaSBpbiBhcnJheSkKICAgICAgICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RyaW5nIGhleCA9IFN0cmluZy5Gb3JtYXQoInswOlh9IiwgQ29udmVydC5Ub0ludDMyKGkpKTsKICAgICAgICAgICAgICAgICAgICAgICAgICAgIGZpbmFsICs9IGhleC5JbnNlcnQoMCwgIjBYIikgKyAiICI7ICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgICAgICAgIGZpbmFsID0gZmluYWwuVHJpbUVuZCgpOwogICAgICAgICAgICAgICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZShmaW5hbCk7CiAgICAgICAgCgl9Cn0=