import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { int n = sc.nextInt(); int sum = 0; for (int i = 0;i < n;i++) { sum += sc.nextInt(); } sum /= n-1; int d = (sum-2*n)/2; int t = n - d; int k = d; System.out.println(t+" "+k); } }