#include <bits/stdc++.h>
using namespace std;
long long int gcd(int a, int b) {
  if (b > a) {
    swap(a, b);
  }
  if (b == 0) {
    return a;
  } else {
    return gcd(b, a % b);
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  ;
  long long int n, x, sum = 0, m = -1;
  cin >> n;
  vector<long long int> a;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    a.push_back(x);
    sum += x;
    if (x > m) {
      m = x;
    }
  }
  long long int g = m - a[0];
  for (int i = 1; i < n; ++i) {
    g = gcd(g, m - a[i]);
  }
  cout << (n * m - sum) / g << " " << g;
}
