import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import static java.lang.System.in; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(in)); int N = Integer.parseInt(reader.readLine()); int sum = 0; String[] inputs = reader.readLine().split(" "); int[] legsArr = new int[N]; for (int i = 0; i < N; i++) { int legs = Integer.parseInt(inputs[i]); sum += legs; legsArr[i] = legs; } sum = sum / (N - 1); int turtle=0; int cranes =0; for (int i = 0; i < N; i++) { if((sum-legsArr[i])%4 ==0) { turtle+=1; } else { cranes+=1; } } System.out.println(cranes +" " + turtle); } }