import java.io.*; import java.util.*; class Main { public static void out (Object o) { System.out.println(o); } public static void main (String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); String[] line = br.readLine().split(" "); int[] nums = new int[n]; int sum = 0; for (int i = 0; i < n; i++) { nums[i] = Integer.parseInt(line[i]); sum += nums[i]; } sum /= n - 1; int cntCrane = 0 , cntTurtle = 0; for (int m : nums) { if ((sum - m) % 4 == 0) cntTurtle++; else cntCrane++; } out(cntCrane + " " + cntTurtle); } }