#include <bits/stdc++.h>
using namespace std;
const long long N = 100010;
int main() {
  long long n;
  cin >> n;
  long long a[4];
  long long sum = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  sort(a, a + n);
  if (n == 4) {
    if ((a[3] - a[0] == (a[1] + a[2]) / 2) && sum / 4 == (a[1] + a[2]) / 2) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  } else {
    if (n == 0) {
      cout << "YES\n1\n1\n3\n3" << endl;
    } else {
      if (n == 1) {
        cout << "YES\n"
             << 2 * a[0] << "\n"
             << 2 * a[0] << "\n"
             << 3 * a[0] << endl;
      } else {
        if (n == 2) {
          if (3 * a[0] == a[1]) {
            cout << "YES\n" << 2 * a[0] << "\n" << 2 * (a[0]) << endl;
            return 0;
          }
          if (a[1] % 3 == 0) {
            cout << "YES\n"
                 << a[1] / 3 << "\n"
                 << (4 * a[1] / 3 - a[0]) << endl;
            return 0;
          }
          if (4 * a[0] > a[1]) {
            cout << "YES\n" << 3 * a[0] << "\n" << 4 * a[0] - a[1] << endl;
            return 0;
          }
          cout << "NO" << endl;
        } else {
          long long c = a[2] - a[0];
          long long b = (a[0] + a[2]) / 2;
          long long r = 2 * a[2] - a[0] - a[1];
          long long r2 = a[2] + a[1] - 2 * a[0];
          if (b == c) {
            cout << "YES\n" << a[0] + a[2] - a[1] << endl;
            return 0;
          }
          if (r == (a[0] + a[1]) / 2) {
            cout << "YES\n" << a[0] + a[1] - a[2] << endl;
            return 0;
          }
          if (r2 == (a[1] + a[2]) / 2) {
            cout << "YES\n" << a[2] + a[1] - a[0] << endl;
            return 0;
          }
          cout << "NO" << endl;
        }
      }
    }
  }
  return 0;
}
