#include <bits/stdc++.h>
using namespace std;
int a[10];
int n;
bool check() {
  sort(a + 1, a + 1 + n);
  if (a[1] + a[4] == a[2] + a[3] && (2 * (a[4] - a[1]) == a[2] + a[3])) {
    return 1;
  }
  return 0;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  sort(a + 1, a + 1 + n);
  if (n == 4) {
    cout << (check() ? "YES" : "NO") << endl;
  }
  if (n == 0) {
    cout << "YES\n1\n1\n3\n3\n";
  }
  if (n == 1) {
    cout << "YES\n" << a[1] << "\n" << a[1] * 3 << "\n" << a[1] * 3 << '\n';
  }
  if (n == 2) {
    if (a[2] <= a[1] * 3) {
      cout << "YES" << endl;
      cout << a[1] * 4 - a[2] << "\n" << a[1] * 3 << endl;
    } else
      cout << "NO" << endl;
  }
  if (n == 3) {
    if (a[3] == a[1] * 3) {
      cout << "YES" << endl;
      cout << a[1] * 4 - a[2];
    } else if (a[1] * 4 == a[2] + a[3]) {
      cout << "YES" << endl;
      cout << a[1] * 3 << endl;
    } else if (a[3] % 3 == 0 && a[3] / 3 * 4 == a[1] + a[2]) {
      cout << "YES" << endl;
      cout << a[3] / 3 << endl;
    } else
      cout << "NO" << endl;
  }
  return 0;
}
