#include <bits/stdc++.h>
using namespace std;
bool check(int x1, int x2, int x3, int x4) {
  if (1 > x1 || x1 > x2 || x2 > x3 || x3 > x4) return false;
  if (x1 + x4 != x2 + x3) return false;
  if (3 * x1 != x4) return false;
  return true;
}
int check3(int a, int b, int c) {
  int d = 3 * a;
  if (check(a, b, c, d)) return d;
  d = c / 3;
  if (check(d, a, b, c)) return d;
  d = a + (c - b);
  if (check(a, d, b, c)) return d;
  d = c - (b - a);
  if (check(a, b, d, c)) return d;
  return -1;
}
int main() {
  int a[10];
  int n;
  cin >> n;
  if (n == 0) {
    cout << "YES" << endl << 1 << endl << 1 << endl << 3 << endl << 3 << endl;
    return 0;
  }
  for (int i = 1; i <= n; i++) cin >> a[i];
  if (n == 1) {
    cout << "YES" << endl
         << a[1] << endl
         << 3 * a[1] << endl
         << 3 * a[1] << endl;
    return 0;
  }
  sort(a + 1, a + 1 + n);
  if (n == 4) {
    if (check(a[1], a[2], a[3], a[4]))
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
    return 0;
  }
  if (n == 3) {
    int c = check3(a[1], a[2], a[3]);
    if (c > 0)
      cout << "YES" << endl << c << endl;
    else
      cout << "NO" << endl;
    return 0;
  }
  for (int i = 1; i <= 2000; i++) {
    int b[10];
    b[3] = i;
    b[1] = a[1];
    b[2] = a[2];
    sort(b + 1, b + 4);
    int c = check3(b[1], b[2], b[3]);
    if (c > 0) {
      cout << "YES" << endl << c << endl << i << endl;
      return 0;
    }
  }
  cout << "NO" << endl;
  return 0;
}
