import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] n = new int[sc.nextInt()]; int turu = 0, kame = 0, sum = 0; for(int i = 0; i < n.length; i++){ n[i] = sc.nextInt(); sum += n[i]; } sum = sum / (n.length - 1); for(int i = 0; i < n.length; i++){ if(sum - n[i] == 2)turu++; if(sum - n[i] == 4)kame++; } System.out.println(turu + " " + kame); sc.close(); } }