import java.util.Scanner; public class Tsurukame { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int n = stdIn.nextInt(); int tsuru = 0; int sum = 0; for (int i = 0; i < n; i++) { sum += stdIn.nextInt(); } tsuru = (sum - n * 2) / 2; System.out.println(tsuru + " " + (n - tsuru)); } }