#include <bits/stdc++.h>
const long long inf = 0x3f3f3f3f3f3f3f3LL;
const long long mod = (long long)1e9 + 7;
using namespace std;
template <class T, class T2>
void smin(T& a, T2 val) {
  if (a > val) a = val;
}
template <class T, class T2>
void smax(T& a, T2 val) {
  if (a < val) a = val;
}
const long long N = 5 * (long long)1e5 + 10;
long long n;
vector<long long> a;
bool check(vector<long long>& v) {
  return 5 * v[0] + v[1] + v[2] - 3 * v[3] == 0;
}
bool check2(vector<long long>& v) {
  long long x1 = v[0], x2 = v[1], x3 = v[2], x4 = v[3];
  return x1 - x2 - x3 + x4 == 0;
}
bool check3(vector<long long>& v) {
  long long x1 = v[0], x2 = v[1], x3 = v[2], x4 = v[3];
  return 2 * x1 + x2 + x3 - 2 * x4 == 0;
}
bool valid(vector<long long>& v) {
  for (auto& it : v) {
    if (!(it >= 1 and it <= 1e6)) {
      return false;
    }
  }
  return true;
}
bool good(vector<long long>& v) {
  return (long long)(v.size()) == 4 and valid(v) and check(v) and check2(v) and
         check3(v) and is_sorted(v.begin(), v.end());
}
void print(vector<long long>& v, vector<long long>& a) {
  assert((long long)(v.size()) == 4);
  multiset<long long> ms;
  for (auto it : v) ms.insert(it);
  for (auto& it : a) {
    assert(ms.find(it) != ms.end());
    ms.erase(ms.find(it));
  }
  cout << "YES" << '\n';
  for (auto& it : ms) {
    cout << it << '\n';
  }
  exit(0);
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cin >> n;
  if (n == 0) {
    cout << "YES" << '\n';
    cout << "1\n1\n3\n3\n";
    exit(0);
  }
  a.resize(n);
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a.begin(), a.end());
  if (n == 1) {
    vector<long long> t = {a[0], a[0], 3 * a[0], 3 * a[0]};
    if (good(t)) {
      print(t, a);
    }
  }
  if (n == 2) {
    long long x = a[0];
    long long y = a[1];
    if (y > 3 * x) {
      cout << "NO";
      exit(0);
    }
    vector<long long> t = {x, y, 4 * x - y, 3 * x};
    ;
    if (good(t)) {
      print(t, a);
    }
    t = {x, 4 * x - y, y, 3 * x};
    if (good(t)) {
      print(t, a);
    }
  }
  if (n == 3) {
    long long x = a[0], y = a[1], z = a[2];
    if (z > 3 * x) {
      cout << "NO";
      exit(0);
    }
    vector<long long> t = {z / 3, x, y, z};
    if (good(t)) {
      print(t, a);
    }
    t = {x, x + z - y, y, z};
    if (good(t)) {
      print(t, a);
    }
    t = {x, y, x + z - y, z};
    if (good(t)) {
      print(t, a);
    }
    t = {x, y, z, 3 * x};
    if (good(t)) {
      print(t, a);
    }
  }
  if (n == 4) {
    if (good(a)) {
      cout << "YES";
      exit(0);
    }
  }
  cout << "NO";
  return 0;
}
