#include <bits/stdc++.h>
using namespace std;
struct less_way {
  bool operator()(const pair<uint32_t, uint32_t>& p1,
                  const pair<uint32_t, uint32_t>& p2) {
    return p1.first < p2.first ||
           (p1.first == p2.first && p1.second > p2.second);
  }
};
uint32_t n;
uint32_t a[4];
uint32_t b[4];
bool check() {
  for (uint32_t i = 0; i < 4; i++) {
    b[i] = a[i];
  }
  sort(b, b + 4);
  return b[0] * 3 == b[3] && b[0] * 4 == b[1] + b[2];
}
int main() {
  cin >> n;
  if (n == 0) {
    cout << "YES" << endl;
    cout << 1 << endl;
    cout << 1 << endl;
    cout << 3 << endl;
    cout << 3 << endl;
    return 0;
  }
  if (n == 1) {
    uint32_t x;
    cin >> x;
    cout << "YES" << endl;
    cout << x << endl;
    cout << 3 * x << endl;
    cout << 3 * x << endl;
    return 0;
  }
  for (uint32_t i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  if (n == 2) {
    if (a[0] * 3 < a[1]) {
      cout << "NO" << endl;
      return 0;
    }
    if ((a[0] + a[1]) % 4 == 0) {
      cout << "YES" << endl;
      uint32_t b = (a[0] + a[1]) / 2;
      cout << b / 2 << endl;
      cout << b / 2 * 3 << endl;
      return 0;
    }
    uint32_t b = a[0] * 2;
    if (a[0] * 3 == a[1]) {
      cout << "YES" << endl;
      cout << b << endl;
      cout << b << endl;
      return 0;
    }
    if (a[0] * 3 > a[1]) {
      cout << "YES" << endl;
      cout << a[0] * 3 << endl;
      cout << 2 * b - a[1] << endl;
      return 0;
    }
  }
  if (n == 3) {
    if (a[0] * 3 == a[2]) {
      uint32_t b = a[0] * 2;
      cout << "YES" << endl;
      cout << 2 * b - a[1] << endl;
      return 0;
    }
    if (a[0] * 4 == a[1] + a[2]) {
      cout << "YES" << endl;
      cout << a[0] * 3 << endl;
      return 0;
    }
    if (a[2] % 3 == 0 && a[2] * 4 == 3 * (a[0] + a[1])) {
      cout << "YES" << endl;
      cout << a[2] / 3 << endl;
      return 0;
    }
    cout << "NO" << endl;
    return 0;
  }
  if (a[0] * 3 == a[3] && a[0] * 4 == a[1] + a[2]) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
