#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, input, i, x4, x1, x2, x3, sum_limit, mx, mn;
  cin >> n;
  vector<int> v;
  if (!n) {
    cout << "YES"
         << "\n";
    cout << "1"
         << "\n"
         << "2"
         << "\n"
         << "2"
         << "\n"
         << "3";
    return 0;
  }
  for (i = 0; i < n; i++) {
    cin >> input;
    v.push_back(input);
  }
  sort(v.begin(), v.end());
  mx = v[n - 1];
  mn = v[0];
  if (n == 1) {
    cout << "YES"
         << "\n";
    x1 = v[0];
    x4 = (3 * x1);
    sum_limit = x1 + x4;
    x2 = (sum_limit) / 2;
    x3 = x2;
    cout << x2 << "\n" << x3 << "\n" << x4;
    return 0;
  }
  if (n == 2) {
    if (mx > (mn * 3)) {
      cout << "NO";
      return 0;
    }
    if (mx == (mn * 3)) {
      cout << "YES"
           << "\n";
      x1 = mn;
      x4 = mx;
      x2 = (x1 + x4) / 2;
      x3 = x2;
      cout << x2 << "\n" << x3;
      return 0;
    } else {
      cout << "YES"
           << "\n";
      x1 = mn;
      x2 = mx;
      x4 = (3 * x1);
      x3 = (x1 + x4) - x2;
      cout << x3 << "\n" << x4;
      return 0;
    }
  }
  if (n == 3) {
    if (mx > (mn * 3)) {
      cout << "NO";
      return 0;
    }
    if (!(mx - mn)) {
      cout << "NO";
      return 0;
    }
    if (mx == (mn * 3)) {
      x1 = v[0];
      x4 = v[n - 1];
      x2 = v[1];
      x3 = (x1 + x4) - x2;
      cout << "YES"
           << "\n";
      cout << x3;
    } else {
      x1 = mn;
      x4 = 3 * x1;
      x2 = v[1];
      x3 = v[2];
      if ((x1 + x4) == (x2 + x3)) {
        cout << "YES"
             << "\n";
        cout << x4;
        return 0;
      } else {
        x4 = v[2];
        if (x4 % 3) {
          cout << "NO";
          return 0;
        }
        x1 = x4 / 3;
        x2 = v[0];
        x3 = v[1];
        if ((x1 + x4) == (x2 + x3)) {
          cout << "YES"
               << "\n";
          cout << x1;
          return 0;
        }
      }
      cout << "NO";
      return 0;
    }
  }
  if (n == 4) {
    if (mx != (3 * mn)) {
      cout << "NO";
      return 0;
    }
    if (mx == (3 * mn)) {
      if ((v[0] + v[3]) == (v[1] + v[2])) {
        cout << "YES";
        return 0;
      } else {
        cout << "NO";
        return 0;
      }
    }
  }
}
