#include <bits/stdc++.h>
using namespace std;
bool check(int *b) {
  int mean4, med2, range;
  int a[4];
  for (int i = 0; i < 4; i++) {
    a[i] = b[i];
  }
  sort(a, a + 4);
  mean4 = (a[0] + a[1] + a[2] + a[3]);
  med2 = (a[2] + a[1]);
  range = (a[3] - a[0]);
  return (med2 * 2 == mean4 && range * 2 == med2);
}
int main() {
  int n;
  cin >> n;
  int a[4];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  bool ans = false;
  if (n == 4) {
    ans = check(a);
  }
  if (n == 3) {
    for (int i = 1; i <= 1500 && !ans; i++) {
      a[3] = i;
      ans = check(a);
    }
  }
  if (n == 2) {
    for (int i = 1; i <= 1500 && !ans; i++) {
      for (int j = i; j <= 1500 && !ans; j++) {
        a[2] = i;
        a[3] = j;
        ans = check(a);
      }
    }
  }
  if (n == 1) {
    a[1] = a[0];
    a[2] = 3 * a[0];
    a[3] = a[2];
    ans = true;
  }
  if (n == 0) {
    a[0] = 1;
    a[1] = 1;
    a[2] = 3;
    a[3] = 3;
    ans = true;
  }
  if (ans) {
    cout << "YES" << endl;
    for (int i = 3; i >= n; i--) {
      cout << a[i] << endl;
    }
  } else {
    cout << "NO" << endl;
  }
}
