#include <bits/stdc++.h>
int a[10];
using namespace std;
bool chec() {
  int b[10];
  for (int i = 1; i <= 4; i++) b[i] = a[i];
  sort(b + 1, b + 5);
  if ((b[2] + b[3]) * 2 == b[1] + b[2] + b[3] + b[4] &&
      (b[4] - b[1]) * 2 == b[2] + b[3])
    return false;
  return true;
}
int main() {
  int n, i, j, k;
  bool fin;
  while (cin >> n) {
    memset(a, 0, sizeof a);
    for (i = 1; i <= n; i++) cin >> a[i];
    if (n == 0) {
      cout << "YES" << endl;
      cout << 1 << endl;
      cout << 1 << endl;
      cout << 3 << endl;
      cout << 3 << endl;
      continue;
    }
    if (n == 1) {
      cout << "YES" << endl;
      cout << a[1] * 2 << endl;
      cout << a[1] * 2 << endl;
      cout << a[1] * 3 << endl;
      continue;
    }
    if (n == 2) {
      fin = true;
      for (a[3] = 1; fin && a[3] <= 1500; a[3]++)
        for (a[4] = 1; fin && a[4] <= 1500; a[4]++) {
          fin = chec();
        }
      if (fin)
        cout << "NO" << endl;
      else {
        cout << "YES" << endl;
        a[3]--;
        a[4]--;
        sort(a + 3, a + 5);
        for (i = 3; i <= 4; i++) cout << a[i] << endl;
      }
      continue;
    }
    if (n == 3) {
      fin = true;
      for (a[4] = 1; fin && a[4] <= 1500; a[4]++) {
        fin = chec();
      }
      if (fin)
        cout << "NO" << endl;
      else {
        cout << "YES" << endl;
        a[4]--;
        cout << a[4] << endl;
      }
      continue;
    }
    if (n == 4) {
      fin = true;
      { fin = chec(); }
      if (fin)
        cout << "NO" << endl;
      else {
        cout << "YES" << endl;
      }
      continue;
    }
  }
  return 0;
}
