#include <bits/stdc++.h>
using namespace std;
long long gdc(long long a, long long b) {
  long long x = max(a, b);
  long long y = a + b - x;
  long long r;
  while (y != 0) {
    r = x % y;
    x = y;
    y = r;
  }
  return x;
}
int32_t main() {
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  long long z = a[n - 1] - a[0];
  for (long long i = 1; i < n; i++) {
    z = gdc(a[n - 1] - a[i], z);
  }
  long long s = 0;
  for (long long i = 0; i < n; i++) {
    s += (a[n - 1] - a[i]);
  }
  cout << s / z << " " << z;
}
