#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  int a[n];
  int mx = 1;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 1; i < n; i++) {
    mx = max(mx, abs(a[i] - a[i - 1]));
  }
  bool ok = 1;
  for (int i = 1; i < n; i++) {
    if (abs(a[i] - a[i - 1]) != mx) {
      if (abs(a[i] - a[i - 1]) == 1) {
        if (min(a[i], a[i - 1]) % mx == 0) ok = 0;
      } else
        ok = 0;
    }
  }
  if (ok) {
    cout << "YES" << '\n';
    cout << 1000000000 << " " << mx;
  } else {
    cout << "NO";
  }
  return 0;
}
