#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, x, y, z, w;
  cin >> n;
  auto ch = [&](int a, int b, int c, int d) {
    if (not(a <= b and b <= c and c <= d)) {
      return 0;
    }
    if (3 * a == d and b + c == a + d) {
      return 1;
    }
    return 0;
  };
  auto pr2 = [&](int a, int b) {
    cout << "YES" << endl;
    cout << a << endl << b;
    exit(0);
  };
  auto pr1 = [&](int a) {
    cout << "YES" << endl;
    cout << a;
    exit(0);
  };
  if (n == 0) {
    cout << "YES" << endl;
    cout << "1\n1\n3\n3" << endl;
  } else if (n == 1) {
    cin >> x;
    cout << "YES" << endl;
    cout << 2 * x << endl << 2 * x << endl << 3 * x << endl;
  } else if (n == 2) {
    cin >> x >> y;
    if (x > y) swap(x, y);
    if (ch(x, 2 * x, 2 * x, y)) pr2(2 * x, 2 * x);
    if (ch((x + y) / 4, x, y, 3 * (x + y) / 4))
      pr2((x + y) / 4, 3 * (x + y) / 4);
    if (ch(x, y, 4 * x - y, 3 * x)) pr2(4 * x - y, 3 * x);
    if (ch(x, 4 * x - y, y, 3 * x)) pr2(4 * x - y, 3 * x);
    if (ch(y / 3, 4 * y / 3 - x, x, y)) pr2(y / 3, 4 * y / 3 - x);
    if (ch(y / 3, x, 4 * y / 3 - x, y)) pr2(y / 3, 4 * y / 3 - x);
    cout << "NO" << endl;
  } else if (n == 3) {
    int a[n];
    cin >> a[0] >> a[1] >> a[2];
    sort(a, a + n);
    x = a[0], y = a[1], z = a[2];
    if (ch(x, y, z, 3 * x)) pr1(3 * x);
    if (ch(x, y, (x + z) - y, z)) pr1((x + z) - y);
    if (ch(x, (x + z) - y, y, z)) pr1((x + z) - y);
    if (ch(z / 3, x, y, z)) pr1(z / 3);
    cout << "NO" << endl;
  } else {
    int a[n];
    cin >> a[0] >> a[1] >> a[2] >> a[3];
    sort(a, a + n);
    x = a[0], y = a[1], z = a[2], w = a[3];
    cout << (ch(x, y, z, w) ? "YES" : "NO") << endl;
  }
}
