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