#include <bits/stdc++.h>
using namespace std;
const long long N = 200000 + 5;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long n, ma, sum, gc, a[N];
signed main() {
  scanf("%lld", &n);
  for (long long i = 1; i <= n; i++) {
    scanf("%lld", &a[i]);
    ma = max(ma, a[i]);
  }
  for (long long i = 1; i <= n; i++) a[i] = ma - a[i];
  gc = sum = a[1];
  for (long long i = 2; i <= n; i++) {
    gc = gcd(gc, a[i]);
    sum += a[i];
  }
  printf("%lld %lld\n", sum / gc, gc);
  return 0;
}
