import java.util.Scanner; public class Yukicoder112 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), kame = 0, tsuru = 0; int[] a = new int[n]; int max = -1, min = Integer.MAX_VALUE; for (int i = 0; i < n; i++) { a[i] = sc.nextInt(); max = Math.max(max, a[i]); min = Math.min(min, a[i]); } if (max == min) if (max % (n - 1) == 4) kame = n; else tsuru = n; else for (int i = 0; i < n; i++) { if (a[i] == max) tsuru++; else kame++; } System.out.println(tsuru + " " + kame); } }