#include using namespace std; int main() { int n; cin >> n; int a; int sum_a = 0; for (int i = 0; i < n; i++) { cin >> a; sum_a += a; } int sum_x = sum_a / (n - 1); int t = 2 * n - sum_x / 2; int k = n - t; cout << t << " " << k << endl; }