import java.util.Scanner; public class Run { public static void main (String arg[]) { Scanner scan = new Scanner(System.in); int N = scan.nextByte(); int a = scan.nextByte(); int x = 1; int b; for (int i = 0; i < N - 1; i++) { b = scan.nextByte(); if (b == a) x++; } if (x*2 + (N-x)*4 - 2 == a) {} else x = N - x; System.out.printf("%d %d",x,N-x); } }