#include <bits/stdc++.h>
using namespace std;
int main() {
  int x[4] = {0};
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> x[i];
  sort(x, x + n);
  if (n == 1) {
    if (x[0] * 3 <= 1000000) {
      cout << "YES" << endl;
      cout << x[0] << endl;
      cout << x[0] * 3 << endl;
      cout << x[0] * 3 << endl;
    } else
      cout << "NO" << endl;
    return 0;
  } else if (n == 2) {
    if (x[0] * 3 > 1000000)
      cout << "NO" << endl;
    else if (x[0] == x[1]) {
      cout << "YES" << endl;
      cout << x[0] * 3 << endl;
      cout << x[0] * 3 << endl;
    } else if (x[0] * 2 == x[1]) {
      cout << "YES" << endl;
      cout << x[1] << endl;
      cout << x[0] * 3 << endl;
    } else {
      int k = x[0] * 3;
      int y = x[0] + k;
      int g = y - x[1];
      y = y - x[0];
      if ((g + x[1]) / 2 == (x[0] + y) / 2 && g > 0 && y > g) {
        cout << "YES" << endl;
        cout << g << '\n' << x[0] * 3 << endl;
      } else if (x[1] == 3 * x[0]) {
        cout << "YES" << x[0] * 2 << '\n' << x[0] * 2 << endl;
      } else
        cout << "NO" << endl;
      return 0;
    }
  } else if (n == 3) {
    int x4 = x[0] * 3;
    int k = x[0] + x4;
    int y = x[1] + x[2];
    if (x4 + x[0] == x[1] + x[2]) {
      cout << "YES" << endl;
      cout << x4 << endl;
      return 0;
    }
    if (x[2] % 3 == 0) {
      x4 = x[2] / 3;
      y = x[1] + x[0];
      if (x4 + x[2] == x[1] + x[0]) {
        cout << "YES" << '\n' << x4 << endl;
        return 0;
      }
    }
    x4 = x[0] + x[2] - x[1];
    if (x[0] * 3 == x[2] && (x[0] + x[2] == x[1] + x4)) {
      cout << "YES" << '\n' << x4 << endl;
      return 0;
    } else {
      cout << "NO" << endl;
      return 0;
    }
    return 0;
  } else if (n == 4) {
    if (x[3] == 3 * x[0]) {
      int y = x[3] + x[0];
      int y1 = x[1] + x[2];
      if (y1 == y) {
        cout << "YES" << endl;
      } else
        cout << "NO" << endl;
    } else
      cout << "NO" << endl;
    return 0;
  } else {
    cout << "YES" << '\n' << 1 << '\n' << 1 << '\n' << 3 << '\n' << 3 << endl;
  }
}
