import java.util.*; import java.math.*; import java.io.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; int[] a = new int[n]; for(int i = 0; i < n; i++) { a[i] = sc.nextInt(); sum += a[i]; } int total = sum / (n-1); int t = 0; for(int i = 0; i < n; i++) { if(total - a[i] == 2) t++; } System.out.println(t + " " + (n-t)); } }