import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), max = 0, min = 200, t, x, y; for (int i = 0; i < n; i++) { t = sc.nextInt(); max = Math.max(max, t); min = Math.min(min, t); } if (max == min) { if ((n - 1) * 2 == max) { System.out.println(n + " 0"); } else { System.out.println("0 " + n); } } else { x = n; y = 0; min += 4; while (x * 2 + y * 4 != min) { x--; y++; } System.out.println(x + " " + y); } } }