#include <bits/stdc++.h>
using namespace std;
const int MAX = 2000;
bool check(vector<int> v) {
  sort(v.begin(), v.end());
  if (2 * v[3] - 2 * v[0] != v[1] + v[2]) return false;
  if (4 * v[3] - 4 * v[0] != v[0] + v[1] + v[2] + v[3]) return false;
  return true;
}
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  if (n == 0) cout << "YES\n1\n1\n3\n3\n";
  if (n == 1)
    cout << "YES\n" << 2 * v[0] << '\n' << 2 * v[0] << '\n' << 3 * v[0] << '\n';
  if (n == 2) {
    v.push_back(0);
    v.push_back(0);
    for (int i = 1; i < MAX; i++) {
      v[2] = i;
      for (int j = 1; j < MAX; j++) {
        v[3] = j;
        if (check(v)) {
          cout << "YES\n" << i << '\n' << j << '\n';
          return 0;
        }
      }
    }
    cout << "NO\n";
  }
  if (n == 3) {
    v.push_back(0);
    for (int i = 1; i < MAX; i++) {
      v[3] = i;
      if (check(v)) {
        cout << "YES\n" << i << '\n';
        return 0;
      }
    }
    cout << "NO\n";
  }
  if (n == 4) cout << (check(v) ? "YES\n" : "NO\n");
  return 0;
}
