#include <bits/stdc++.h>
using namespace std;
const int maxn = 200005;
const int logn = (log(maxn) / log(2)) + 5;
const int inf = 0x3f3f3f3f;
const long double eps = 1e-9;
long long a[maxn];
long long gcd(long long a, long long b) {
  if (b) return gcd(b, a % b);
  return a;
}
int main() {
  std::ios::sync_with_stdio(false);
  std::cin.tie(0);
  int n;
  cin >> n;
  for (int i = (0); i < (n); i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  long long mx = a[n - 1];
  long long ans1 = 0;
  long long g = 0;
  for (int i = (0); i < (n - 1); i++) {
    ans1 += mx - a[i];
    if (!g)
      g = ans1;
    else
      g = gcd(g, mx - a[i]);
  }
  cout << ans1 / g << ' ' << g << "\n";
  return 0;
}
