public static void Main()
string s = Console.ReadLine();
Program pro = new Program();
int num = pro.secondHighestInteger(s);
public int secondHighestInteger(string s)
char[] ch=s.ToCharArray();
int[] array=new int[ch.Length];
for(int i=0;i<ch.Length;i++)
if(Char.IsNumber(ch[i])){
array[count]= (int) Char.GetNumericValue(ch[i]);
int[] newrray=array.Distinct().ToArray();
num=array[newrray.Length-1];