using System;
using System.Linq;
public class Program
{
public static void Main()
int[] a = {4,8,6,7,8};
int max = a.Max();
int count = 0;
for ( int i = 0; i < a.Length; i++)
if ( a[i] == max ) { count++; }
}
Console.Write("{0} (the maximum) and {1} (number of times {0} occurred)", max, count);