#include <bits/stdc++.h>
using namespace std;
const int maxn = 1000 * 1000;
bool if_good(int a) {
  if (a < 0) a = -a;
  while (a != 0) {
    if (a % 10 == 8) return true;
    a /= 10;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  vector<int> a(4);
  for (int i = 0; i < n; i++) cin >> a[i];
  if (n == 0) {
    cout << "YES" << endl;
    cout << 1 << endl;
    cout << 1 << endl;
    cout << 3 << endl;
    cout << 3 << endl;
    return 0;
  }
  if (n == 1) {
    cout << "YES" << endl;
    cout << a[0] << endl;
    cout << 3 * a[0] << endl;
    cout << 3 * a[0] << endl;
    return 0;
  }
  if (n == 2) {
    vector<int> b(4);
    for (int i = 1; i <= 1500; i++) {
      for (int j = 1; j <= 1500; j++) {
        b = a;
        b[2] = i;
        b[3] = j;
        sort(b.begin(), b.end());
        if ((b[0] + b[1] + b[2] + b[3] == 2 * (b[1] + b[2])) &&
            (b[0] + b[1] + b[2] + b[3] == 4 * (b[3] - b[0]))) {
          cout << "YES" << endl;
          cout << i << endl;
          cout << j << endl;
          return 0;
        }
      }
    }
    cout << "NO";
    return 0;
  }
  if (n == 3) {
    vector<int> b(4);
    for (int i = 1; i <= 1000; i++) {
      b = a;
      b[3] = i;
      sort(b.begin(), b.end());
      if ((b[0] + b[1] + b[2] + b[3] == 2 * (b[1] + b[2])) &&
          (b[0] + b[1] + b[2] + b[3] == 4 * (b[3] - b[0]))) {
        cout << "YES" << endl;
        cout << i << endl;
        return 0;
      }
    }
    cout << "NO";
    return 0;
  }
  if (n == 4) {
    sort(a.begin(), a.end());
    if ((a[0] + a[1] + a[2] + a[3] == 2 * (a[1] + a[2])) &&
        (a[0] + a[1] + a[2] + a[3] == 4 * (a[3] - a[0])))
      cout << "YES";
    else
      cout << "NO";
    return 0;
  }
  return 0;
}
