#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
int main() {
  int n;
  cin >> n;
  int a, x, pr;
  long long sum = 0;
  int ar[n + 5];
  int mx = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &ar[i]);
    mx = max(ar[i], mx);
  }
  pr = ar[0];
  sum = mx - pr;
  for (int i = 1; i < n; i++) {
    a = ar[i];
    if (i == 1) x = abs(pr - a);
    x = gcd(abs(pr - a), x);
    sum += abs(mx - a);
    pr = a;
  }
  cout << sum / x << " " << x << endl;
}
