import java.util.Scanner; public class Main { public static void main(String[] a) { Scanner s = new Scanner(System.in); int N=s.nextInt(),i=0,S=0,C=0,T=0; int[] F=new int[N]; for(;s.hasNext();)S+=(F[i++]=s.nextInt()); S/=N-1; for(int f:F)if(S-f==2)C++;else T++; System.out.println(C+" "+T); } }