#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long lcm(long long a, long long b) { return a / gcd(a, b) * b; }
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  long long a[n];
  long long x = 0;
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
    x = max(x, a[i]);
  }
  long long y = 0;
  long long z = n * x;
  for (long long i = 0; i < n; ++i) {
    y = gcd(y, x - a[i]);
    z -= a[i];
  }
  cout << z / y << " " << y;
  return 0;
}
