import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		Main main=new Main();
		main.run();
	}

	void run() {

		Scanner sc=new Scanner(System.in);

		int N=sc.nextInt();

		int[] a=new int[N];

		int sum=0;
		for(int i=0;i<N;i++) {
			int buf=sc.nextInt();
			a[i]=buf;
			sum+=buf;
		}

		int legs=0;
		int kame=0;
		int sum2=0;
		for(int i=0;i<1<<N;i++) {
			legs=0;
			kame=0;
			sum2=0;
			for(int j=0;j<N;j++) {

				if(i==0 && j==0) {
					continue;
				}

				if((i>>j&1)==1) {
					legs+=4;
					sum2+=a[j]+4;
					kame++;
				}else {
					legs+=2;
					sum2+=a[j]+2;
				}

			}

			if(sum2==legs*N) {
				System.out.println((N-kame)+" "+kame);
				return;
			}

		}

	}

}