import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in), 1); String s = r.readLine(); int n = Integer.parseInt(s); int a[] = new int[100]; s = r.readLine(); String[] sl = s.split(" "); for(int i = 0; i < n; i++) { a[i] = Integer.parseInt(sl[i]); } int k = 0; for(int i = 0; i < n; i++) { k += a[i]; } k /= n - 1; System.out.printf("%d %d", (4 * n - k) / 2, n - (4 * n - k) / 2); } }