import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); int array[] = new int[N]; int ave = 0; int kame = 0; int turu = 0; for (int i = 0; i < N; i++) { array[i] = scan.nextInt(); ave += array[i]; } ave /= (N - 1); for (int i = 0; i < N; i++) { if (ave - array[i] == 2) { turu++; } else { kame++; } } System.out.println(turu + " " + kame); } }