using System; using System.Collections.Generic; using System.Linq; public class yukicoder { public static bool issame(int[] n) { for(int i = 1; i <= n.Length - 1; i++) { if(n[0] != n[i]) { return false; } } return true; } public static void Main() { int animals = int.Parse(Console.ReadLine()); int[] input = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray(); int t = 0; int k = 0; if(issame(input)) { if(input.Sum() / 2 / animals == 2) { t = animals; } else { k = animals; } } else { Array.Sort(input); t = input.Length - Array.IndexOf(input, input.Max()); k = input.Length - t; } Console.WriteLine("{0} {1}", t, k); } }