using System;
class ASCII {
static void Main(){
Console.WriteLine("Please input a char:");
try{
string str = Console.ReadLine();
char chr = Convert.ToChar(str);
Console.WriteLine("{0}\t->\t{1}",str,Convert.ToInt32(chr).ToString());
}catch(Exception ex){
Console.WriteLine("Error:\t"+ ex.Message);
}
}
}