#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-9;
int a[3];
bool check4(int i, int j, int k, int t) {
  if (!(i > 0 && min(j, k) >= i && t >= max(j, k))) return false;
  if ((i + j + k + t) == 2 * (j + k) && (j + k) == 2 * (t - i))
    return true;
  else
    return false;
}
void check2(int i, int j) {
  int x, y;
  y = i * 3;
  x = y + i - j;
  if (x > 0 && check4(i, j, x, y)) {
    cout << "YES" << endl << x << endl << y;
    return;
  }
  if (j % 3 == 0) {
    y = j / 3;
    x = y + j - i;
    if (x > 0 && check4(y, x, i, j)) {
      cout << "YES" << endl << x << endl << y;
      return;
    }
  }
  if ((i + j) % 4 == 0) {
    x = (i + j) / 4;
    y = x * 3;
    if (check4(x, i, j, y)) {
      cout << "YES" << endl << x << endl << y;
      return;
    }
  }
  cout << "NO";
}
int check3(int i, int j, int k) {
  if (k % 3 == 0 && check4(k / 3, i, j, k)) return k / 3;
  if (i * 3 == k) {
    int d = 2 * (k - i) - j;
    if (d > 0 && check4(i, j, d, k)) return d;
    cout << d;
  }
  int d = i * 3;
  if (check4(i, j, k, d)) return d;
  return 0;
}
int main() {
  int n;
  cin >> n;
  if (n == 0) cout << "YES" << endl << 1 << endl << 1 << endl << 3 << endl << 3;
  if (n == 1) {
    int d;
    cin >> d;
    cout << "YES" << endl << d << endl << d * 3 << endl << d * 3;
  }
  if (n == 2) {
    cin >> a[0] >> a[1];
    sort(a, a + 2);
    check2(a[0], a[1]);
  }
  if (n == 3) {
    int d = 0;
    cin >> a[0] >> a[1] >> a[2];
    sort(a, a + 3);
    d = check3(a[0], a[1], a[2]);
    if (d)
      cout << "YES" << endl << d;
    else
      cout << "NO";
  }
  if (n == 4) {
    for (int i = 0; i < 4; i++) cin >> a[i];
    sort(a, a + 4);
    if (check4(a[0], a[1], a[2], a[3]))
      cout << "YES";
    else
      cout << "NO";
  }
  return 0;
}
