#include <bits/stdc++.h>
using namespace std;
inline bool check(int a, int b, int c, int d) {
  if (2 * d - 2 * a == b + c) {
    if (a + b + c + d == 4 * d - 4 * a) {
      if (a + b + c + d == 2 * b + 2 * c) {
        return 1;
      }
    }
  }
  return 0;
}
int main() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << "YES" << endl << 1 << endl << 1 << endl << 3 << endl << 3;
    return 0;
  }
  if (n == 1) {
    int a;
    cin >> a;
    cout << "YES" << endl << a << endl << 3 * a << endl << 3 * a;
    return 0;
  }
  if (n == 4) {
    int a[4];
    for (int i = 0; i < 4; i++) cin >> a[i];
    sort(a, a + 4);
    if (check(a[0], a[1], a[2], a[3])) {
      cout << "YES";
      return 0;
    }
    cout << "NO";
  }
  if (n == 2) {
    int a[4];
    cin >> a[0] >> a[1];
    int b[4];
    for (a[2] = 1; a[2] <= 1500; a[2]++)
      for (a[3] = a[2]; a[3] <= 1500; a[3]++) {
        for (int i = 0; i < 4; i++) b[i] = a[i];
        sort(b, b + 4);
        if (check(b[0], b[1], b[2], b[3])) {
          cout << "YES";
          cout << endl << a[2] << endl << a[3];
          return 0;
        }
      }
    cout << "NO";
  }
  if (n == 3) {
    int a[4];
    cin >> a[0] >> a[1] >> a[2];
    for (a[3] = 1; a[3] <= 1300; a[3]++) {
      int b[4];
      for (int i = 0; i < 4; i++) b[i] = a[i];
      sort(b, b + 4);
      if (check(b[0], b[1], b[2], b[3])) {
        cout << "YES";
        cout << endl << a[3];
        return 0;
      }
    }
    cout << "NO";
  }
}
