using System; using System.Collections.Generic; using System.Linq; class Magatro { static void Main() { int N = int.Parse(Console.ReadLine()); int[] a = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray(); int tru = 0, kame = 0; int max = a.Max(); int min = a.Min(); if (min == max) { if (2 == a[0] / (N - 1)) { tru = N; } else kame = N; goto end; } for(int i = 0; i < N; i++) { if (a[i] == min) { kame++; } else { tru++; } } end: Console.WriteLine("{0} {1}", tru, kame); } }