#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  if (t != 0) {
    int num[10], temp[10];
    bool flag = false;
    for (int i = 1; i <= t; i++) {
      cin >> num[i];
    }
    sort(num + 1, num + 1 + t);
    if (t == 3 && num[3] % 3 == 0 && ((num[1] + num[2]) % 2 == 0) &&
        (num[3] / 3 * 2 == (num[1] + num[2]) / 2)) {
      cout << "YES" << endl << num[3] / 3 << endl;
      return 0;
    }
    temp[1] = num[1];
    int b = num[1] * 2;
    temp[4] = num[1] + b;
    if (t >= 2) {
      temp[2] = num[2];
      temp[3] = 2 * b - temp[2];
    } else {
      temp[2] = temp[1] + 1;
      temp[3] = 2 * b - temp[2];
    }
    if (temp[3] <= 0) flag = true;
    sort(temp + 1, temp + 5);
    int i, j, k;
    for (j = 1, i = 1; i <= t && j <= 4; j++) {
      if (num[i] == temp[j]) {
        i++;
      }
    }
    if (i <= t || flag)
      cout << "NO" << endl;
    else {
      cout << "YES" << endl;
      for (j = 1, k = 1; j <= 4; j++) {
        if (num[k] == temp[j]) {
          k++;
          continue;
        }
        cout << temp[j] << endl;
      }
    }
  } else
    cout << "YES" << endl
         << "1" << endl
         << "1" << endl
         << "3" << endl
         << "3" << endl;
  return 0;
}
