using System.Collections.Generic;
public static readonly char[] HEX_SYMBOLS = new char[]
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9',
'a', 'b', 'c', 'd', 'e', 'f'};
public static string NumToHex(int num) {
var res = new List<char>();
res.Add(HEX_SYMBOLS[digit]);
return string.Join("", res);
public static void Main()
Console.WriteLine("UniLecs");
Console.WriteLine(NumToHex(26));
Console.WriteLine(NumToHex(-1));