#include <bits/stdc++.h>
using namespace std;
long long arr[200001];
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> arr[i];
  }
  sort(arr, arr + n, greater<int>());
  long long gcf = 0, total = 0;
  for (int i = 0; i < n; ++i) {
    gcf = gcd(arr[0] - arr[i], gcf);
    total += (arr[0] - arr[i]);
  }
  cout << total / gcf << " " << gcf << endl;
}
