#include <bits/stdc++.h>
using namespace std;
const int MAXN = 5e5 + 7;
int a[5];
int main() {
  int m, n, i, j, k;
  cin >> m;
  for (i = 1; i <= m; i++) cin >> a[i];
  sort(a + 1, a + 1 + m);
  if (m == 4) {
    double mid1 = (double)(a[2] + a[3]) / 2.00;
    double mid2 = (double)(a[1] + a[2] + a[3] + a[4]) / 4.00;
    double mid3 = (a[4] - a[1]);
    if (mid1 == mid2 && mid2 == mid3) return puts("YES");
    return puts("NO");
  }
  if (m == 3) {
    for (k = 0; k <= 10000; k++) {
      int b[5] = {};
      b[1] = a[1];
      b[2] = a[2];
      b[3] = a[3];
      b[4] = k;
      sort(b + 1, b + 5);
      double mid1 = (double)(b[2] + b[3]) / 2.00;
      double mid2 = (double)(b[1] + b[2] + b[3] + b[4]) / 4.00;
      double mid3 = (b[4] - b[1]);
      if (mid1 == mid2 && mid2 == mid3) {
        cout << "YES" << endl;
        cout << k << endl;
        return 0;
      }
    }
    return puts("NO");
  }
  if (m == 2) {
    for (k = 0; k <= 2000; k++) {
      for (j = 0; j <= 2000; j++) {
        int b[5] = {};
        b[1] = a[1];
        b[2] = a[2];
        b[3] = j;
        b[4] = k;
        sort(b + 1, b + 5);
        double mid1 = (double)(b[2] + b[3]) / 2.00;
        double mid2 = (double)(b[1] + b[2] + b[3] + b[4]) / 4.00;
        double mid3 = (b[4] - b[1]);
        if (mid1 == mid2 && mid2 == mid3) {
          cout << "YES" << endl;
          cout << k << endl;
          cout << j << endl;
          return 0;
        }
      }
    }
    return puts("NO");
  }
  if (m == 1) {
    cout << "YES" << endl;
    cout << a[1] * 2 << endl;
    cout << a[1] * 2 << endl;
    cout << a[1] * 3 << endl;
  }
  if (m == 0) {
    cout << "YES" << endl;
    cout << 1 << endl;
    cout << 1 << endl;
    cout << 3 << endl;
    cout << 3 << endl;
  }
}
