#include <bits/stdc++.h>
using namespace std;
bool test(vector<int> x) {
  sort((x).begin(), (x).end());
  int sum_x = x[0] + x[1] + x[2] + x[3];
  return sum_x % 4 == 0 && (x[1] + x[2]) % 2 == 0 &&
         sum_x / 4 == (x[1] + x[2]) / 2 && (x[1] + x[2]) / 2 == x[3] - x[0];
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, tmp_int;
  cin >> n;
  vector<int> a;
  for (int i = 0; i < n; ++i) {
    cin >> tmp_int;
    a.push_back(tmp_int);
  }
  sort((a).begin(), (a).end());
  if (n == 0) {
    cout << "YES\n1\n1\n3\n3" << endl;
  } else if (n == 1) {
    cout << "YES" << endl
         << a[0] << endl
         << a[0] * 3 << endl
         << a[0] * 3 << endl;
  } else if (n == 2) {
    bool flag = false;
    int i, j;
    for (i = 1; i < 2000; ++i) {
      a.push_back(i);
      for (j = 1; j < 2000; ++j) {
        a.push_back(j);
        flag = test(a);
        if (flag) break;
        a.pop_back();
      }
      if (flag) break;
      a.pop_back();
    }
    if (flag) {
      cout << "YES" << endl << i << endl << j << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (n == 3) {
    bool flag = false;
    int i = 1;
    for (; i < 2000; ++i) {
      a.push_back(i);
      flag = test(a);
      if (flag) break;
      a.pop_back();
    }
    if (flag) {
      cout << "YES" << endl << i << endl;
    } else {
      cout << "NO" << endl;
    }
  } else if (n == 4) {
    if (test(a)) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
