using System;
public class Program
{
public static void Main()
int[] a = {23,17,37,32,39,20,39};
Array.Sort(a);
for (int i = a.Length - 1; i >= 0; i--) {
if (a[i] != a[a.Length - 1]){
Console.WriteLine( "The second maximum integer: {0}", a[i] );
break;
}