#include <bits/stdc++.h>
using namespace std;
int toInt(string s) {
  int r = 0;
  istringstream sin(s);
  sin >> r;
  return r;
}
long long toInt64(string s) {
  long long r = 0;
  istringstream sin(s);
  sin >> r;
  return r;
}
double toDouble(string s) {
  double r = 0;
  istringstream sin(s);
  sin >> r;
  return r;
}
string toString(long long n) {
  string s, s1;
  while (n / 10 > 0) {
    s += (char)((n % 10) + 48);
    n /= 10;
  }
  s += (char)((n % 10) + 48);
  n /= 10;
  s1 = s;
  for (int i = 0; i < s.length(); i++) s1[(s.length() - 1) - i] = s[i];
  return s1;
}
bool isUpperCase(char c) { return c >= 'A' && c <= 'Z'; }
bool isLowerCase(char c) { return c >= 'a' && c <= 'z'; }
bool isLetter(char c) { return c >= 'A' && c <= 'Z' || c >= 'a' && c <= 'z'; }
bool isDigit(char c) { return c >= '0' && c <= '9'; }
char toLowerCase(char c) { return (isUpperCase(c)) ? (c + 32) : c; }
char toUpperCase(char c) { return (isLowerCase(c)) ? (c - 32) : c; }
long long gcd(long long a, long long b) {
  if (!a) return b;
  return gcd(b % a, a);
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  int a[4];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  if (n == 0)
    cout << "YES" << endl << 1 << endl << 1 << endl << 3 << endl << 3 << endl;
  else if (n == 1)
    cout << "YES" << endl
         << 2 * a[0] << endl
         << 2 * a[0] << endl
         << 3 * a[0] << endl;
  else if (n == 2 && 4 * a[0] - a[1] > 0)
    cout << "YES" << endl << 4 * a[0] - a[1] << endl << 3 * a[0] << endl;
  else if (n == 2)
    cout << "NO" << endl;
  else if (n == 4 && a[0] + a[3] == a[1] + a[2] && a[3] == 3 * a[0] &&
           a[0] == (a[1] + a[2]) / 4 && a[1] + a[2] == 4 * a[3] / 3)
    cout << "YES" << endl;
  else if (n == 4)
    cout << "NO" << endl;
  else {
    int b[4];
    for (int i = 1; i <= 1000000; i++) {
      for (int i = 0; i < 3; i++) b[i] = a[i];
      b[3] = i;
      sort(b, b + 4);
      if (b[0] + b[3] == b[1] + b[2] && b[3] == 3 * b[0] &&
          b[0] == (b[1] + b[2]) / 4 && b[1] + b[2] == 4 * b[3] / 3)
        return 0 * bool(cout << "YES" << endl << i << endl);
    }
    cout << "NO" << endl;
  }
}
