#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << "YES\n1\n1\n3\n3";
    return 0;
  } else if (n == 1) {
    cin >> n;
    cout << "YES\n" << n << endl << 3 * n << endl << 3 * n;
    return 0;
  } else if (n == 2) {
    int a, b;
    cin >> a >> b;
    if (a > b) swap(a, b);
    if (b <= 3 * a) {
      cout << "YES" << endl;
      int mid = 2 * a;
      if (b > mid) {
        if (b == 3 * a)
          cout << a << endl << b;
        else
          cout << 3 * a << endl << a + (3 * a - b);
      } else {
        if (b == mid)
          cout << b << endl << 3 * a;
        else
          cout << 3 * a << endl << 3 * a - b + a;
      }
      return 0;
    }
  } else if (n == 3) {
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    for (int i = 1; i <= 1000000; i++) {
      int tmp[] = {a[0], a[1], a[2], i};
      sort(tmp, tmp + 4);
      int sum = a[0] + a[1] + a[2] + i;
      if (sum / 4.0 == tmp[3] - tmp[0] &&
          tmp[3] - tmp[0] == (tmp[2] + tmp[1]) / 2.0) {
        cout << "YES\n" << i;
        return 0;
      }
    }
  } else {
    int a[4];
    cin >> a[0] >> a[1] >> a[2] >> a[3];
    int sum = a[0] + a[1] + a[2] + a[3];
    sort(a, a + 4);
    if (sum / 4.0 == a[3] - a[0] && a[3] - a[0] == (a[2] + a[1]) / 2.0) {
      puts("YES");
      return 0;
    }
  }
  puts("NO");
  return 0;
}
