#include <bits/stdc++.h>
using namespace std;
bool check1(float i, float j, float arr[4]) {
  arr[3] = i;
  arr[2] = j, sort(arr, arr + 4);
  if (arr[3] == 3 * arr[0] && (arr[0] + arr[3]) == (arr[1] + arr[2]))
    return 1;
  else
    return 0;
}
void do1(int a, int b, int c, int d) {
  cout << "YES\n" << a << endl << b << endl << c << endl << d << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  float n, q = 0, u, v, a[4], b[4];
  cin >> n;
  if (n == 0) {
    cout << "YES\n1\n1\n3\n3\n";
    return 0;
  } else if (n == 1) {
    cin >> a[0];
    cout << "YES\n" << a[0] << endl << 3 * a[0] << endl << 3 * a[0] << endl;
    return 0;
  } else if (n == 2) {
    cin >> a[0] >> a[1];
    for (long long int i = 1; i < 1501; i++) {
      for (long long int j = i; j < 1501; j++) {
        copy(a, a + 4, b);
        if (check1(i, j, b)) {
          cout << "YES\n" << i << endl << j << endl;
          return 0;
        }
      }
    }
  } else if (n == 3) {
    cin >> a[0] >> a[1] >> a[2];
    sort(a, a + 3);
    for (long long int i = 1; i < 1501; i++) {
      copy(a, a + 4, b);
      if (check1(i, b[2], b)) {
        cout << "YES\n" << i << endl;
        return 0;
      }
    }
  } else {
    cin >> a[0] >> a[1] >> a[2] >> a[3];
    if (check1(a[3], a[2], a)) {
      cout << "YES\n";
      return 0;
    }
  }
  cout << "NO\n";
}
