#include <bits/stdc++.h>
using namespace std;
void read(long long int n = 10) {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << setprecision(n) << fixed;
}
long long int M = 1e9 + 7;
long long int M1 = 998244353;
int32_t main() {
  read();
  long long int n;
  cin >> n;
  long long int diff = INT_MIN;
  vector<long long int> arr(n);
  for (long long int i = 0; i < n; i++) cin >> arr[i];
  for (long long int i = 1; i < n; i++) {
    if (abs(arr[i - 1] - arr[i]) != 1) {
      diff = abs(arr[i - 1] - arr[i]);
      break;
    }
  }
  if (diff == INT_MIN) {
    cout << "YES\n";
    cout << 1000000000 << " " << 1;
    return 0;
  }
  if (diff == 0) {
    cout << "NO\n";
    return 0;
  }
  long long int ans = 1;
  for (long long int i = 1; i < n; i++) {
    if (abs(arr[i] - arr[i - 1]) == 1) {
      if (arr[i - 1] < arr[i]) {
        if (arr[i - 1] % diff == 0) {
          ans = 0;
          break;
        }
      } else {
        if (arr[i] % diff == 0) {
          ans = 0;
          break;
        }
      }
    } else {
      if (abs(arr[i] - arr[i - 1]) != diff) {
        ans = 0;
        break;
      }
    }
  }
  if (ans) {
    cout << "YES\n";
    cout << 1000000000 << " " << diff;
  } else {
    cout << "NO\n";
  }
}
