#include <bits/stdc++.h>
using namespace std;
int a, b, c, v[5], x, n;
int main() {
  cin >> n;
  if (!n) {
    cout << "YES\n1\n1\n3\n3";
    return 0;
  }
  if (n == 1) {
    cin >> x;
    cout << "YES\n";
    cout << x << "\n" << 3 * x << "\n" << 3 * x;
    return 0;
  }
  if (n == 2) {
    cin >> a >> b;
    v[1] = a;
    v[2] = b;
    for (int i = 1; i <= 4000; ++i)
      for (int j = 1; j <= 4000; ++j) {
        v[3] = i;
        v[4] = j;
        sort(v + 1, v + 5);
        if (4 * (v[4] - v[1]) == 2 * (v[2] + v[3]) &&
            2 * (v[2] + v[3]) == (v[1] + v[2] + v[3] + v[4])) {
          cout << "YES\n";
          cout << i << "\n" << j;
          return 0;
        }
        v[1] = a;
        v[2] = b;
      }
    cout << "NO";
    return 0;
  }
  if (n == 3) {
    cin >> a >> b >> c;
    v[1] = a;
    v[2] = b;
    v[3] = c;
    for (int i = 1; i <= 5000; ++i) {
      v[4] = i;
      sort(v + 1, v + 5);
      if (4 * (v[4] - v[1]) == 2 * (v[2] + v[3]) &&
          2 * (v[2] + v[3]) == (v[1] + v[2] + v[3] + v[4])) {
        cout << "YES\n";
        cout << i;
        return 0;
      }
      v[1] = a;
      v[2] = b;
      v[3] = c;
    }
    cout << "NO";
    return 0;
  }
  if (n == 4) {
    for (int i = 1; i <= 4; ++i) cin >> v[i];
    sort(v + 1, v + 5);
    if (4 * (v[4] - v[1]) == 2 * (v[2] + v[3]) &&
        2 * (v[2] + v[3]) == (v[1] + v[2] + v[3] + v[4])) {
      cout << "YES\n";
      return 0;
    }
    cout << "NO";
    return 0;
  }
  return 0;
}
