#include <bits/stdc++.h>
using namespace std;
long long ar[10];
long long check(long long a, long long s, long long d, long long f) {
  ar[1] = a;
  ar[2] = s;
  ar[3] = d;
  ar[4] = f;
  sort(ar + 1, ar + 5);
  if (ar[4] - ar[1] == (ar[2] + ar[3]) / 2 &&
      ar[4] - ar[1] == ((ar[2] + ar[3] + ar[1] + ar[4]) / 4) &&
      (ar[2] + ar[3] + ar[1] + ar[4]) % 4 == 0 && (ar[2] + ar[3]) % 2 == 0) {
    return 1;
  }
  return 0;
}
int main() {
  long long a, s, d, f, g, h, j, k, l;
  cin >> a;
  if (a == 0)
    cout << "YES\n1\n1\n3\n3\n";
  else if (a == 4) {
    cin >> ar[1] >> ar[2] >> ar[3] >> ar[4];
    sort(ar + 1, ar + 5);
    if (ar[4] - ar[1] == (ar[2] + ar[3]) / 2 &&
        ar[4] - ar[1] == ((ar[2] + ar[3] + ar[1] + ar[4]) / 4) &&
        (ar[2] + ar[3] + ar[1] + ar[4]) % 4 == 0 && (ar[2] + ar[3]) % 2 == 0) {
      cout << "YES\n";
    } else
      cout << "NO\n";
  } else if (a == 1) {
    cin >> s;
    cout << "YES"
         << "\n"
         << s << "\n"
         << 3 * s << "\n"
         << 3 * s << endl;
  } else if (a == 3) {
    cin >> s >> d >> f;
    for (g = 1; g <= 3000; g++) {
      if (check(s, d, f, g)) {
        cout << "YES\n";
        cout << g << endl;
        return 0;
      }
    }
    cout << "NO\n";
  } else {
    cin >> s >> d;
    for (f = 1; f <= 3000; f++) {
      for (g = 1; g <= 3000; g++) {
        if (check(s, d, f, g)) {
          cout << "YES\n";
          cout << f << "\n" << g << endl;
          return 0;
        }
      }
    }
    cout << "NO\n";
  }
}
