#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  while (cin >> a) {
    int A[5] = {};
    if (a == 0) {
      cout << "YES" << '\n' << 1 << '\n' << 1 << '\n' << 3 << '\n' << 3 << '\n';
      continue;
    }
    if (a == 1) {
      int x;
      cin >> x;
      cout << "YES" << '\n' << x << '\n' << 3 * x << '\n' << 3 * x << '\n';
    }
    if (a == 4) {
      double sum = 0;
      for (int i = 0; i < a; i++) {
        cin >> A[i];
        sum += A[i];
      }
      double ave = sum / 4.0;
      sort(A, A + 4);
      if (double(A[3] - A[0]) == ave && double((A[1] + A[2]) / 2.0) == ave) {
        cout << "YES" << '\n';
      } else {
        cout << "NO" << '\n';
      }
      continue;
    } else if (a == 2) {
      double sum = 0, tmp = 0;
      int B[5] = {};
      for (int i = 0; i < 2; i++) {
        cin >> A[i];
        B[i] = A[i];
        sum += A[i];
        tmp += A[i];
      }
      int ok = 0;
      for (int i = 1; i <= 1500 && !ok; i++) {
        for (int j = 1; j <= 1500 && !ok; j++) {
          sum = tmp;
          A[2] = i, A[3] = j;
          sum += i, sum += j;
          sort(A, A + 4);
          double ave = sum / 4.0;
          if (ave == double(A[3] - A[0]) &&
              ave == double((A[1] + A[2]) / 2.0)) {
            cout << "YES" << '\n';
            cout << i << '\n' << j << '\n';
            ok = 1;
            break;
          }
          A[0] = B[0], A[1] = B[1];
        }
      }
      if (!ok) {
        cout << "NO" << '\n';
      }
    } else if (a == 3) {
      double sum = 0, tmp = 0;
      int B[5] = {};
      for (int i = 0; i < 3; i++) {
        cin >> A[i];
        B[i] = A[i];
        sum += A[i];
        tmp += A[i];
      }
      int ok = 0;
      for (int i = 1; i <= 1500 && !ok; i++) {
        sum = tmp;
        A[3] = i;
        sum += i;
        sort(A, A + 4);
        double ave = sum / 4.0;
        if (ave == double(A[3] - A[0]) && ave == double((A[1] + A[2]) / 2.0)) {
          cout << "YES" << '\n';
          cout << i << '\n';
          ok = 1;
          break;
        }
        A[0] = B[0], A[1] = B[1], A[2] = B[2];
      }
      if (!ok) {
        cout << "NO" << '\n';
      }
    }
  }
  return 0;
}
