#include <bits/stdc++.h>
using namespace std;
int modular_pow(int base, int exponent) {
  int result = 1;
  while (exponent > 0) {
    if (exponent % 2 == 1) result = (result * base);
    exponent = exponent >> 1;
    base = (base * base);
  }
  return result;
}
int gcd(long long int a, long long int b) {
  if (b == 0)
    return a;
  else
    return gcd(b, a % b);
}
bool chek(int x) { return (x && !(x & (x - 1))); }
bool check(int x, int y, int p, int l) {
  int b[4];
  b[0] = x;
  b[1] = y;
  b[2] = p;
  b[3] = l;
  sort(b, b + 4);
  float sum = float(b[0] + b[1] + b[2] + b[3]) / 4.0;
  float ra = b[3] - b[0];
  float me = float(b[1] + b[2]) / 2.0;
  if (sum == ra && ra == me)
    return true;
  else
    return false;
}
int a[5];
int main() {
  int n;
  scanf("%d", &n);
  if (n == 0) {
    puts("YES");
    puts("1");
    puts("1");
    puts("3");
    puts("3");
  } else {
    for (int u = 0; u < n; u++) scanf("%d", &a[u]);
    if (n == 2) {
      int flag = 0;
      for (int u = 1; u <= 1500; u++) {
        for (int j = 1; j <= 1500; j++) {
          if (check(a[0], a[1], u, j)) {
            puts("YES");
            cout << u << endl;
            cout << j << endl;
            flag = 1;
            break;
          }
        }
        if (flag == 1) break;
      }
      if (flag == 0) puts("NO");
    }
    if (n == 4) {
      sort(a, a + 4);
      int y = 3 * a[0];
      int x = 4 * a[0] - a[1];
      if ((a[1] < 1 || a[1] > 1000000) || (a[3] < 1 || a[3] > 1000000) ||
          (a[2] < 1 || a[2] > 1000000) || (a[0] < 1 || a[0] > 1000000))
        puts("NO");
      else {
        if (x == a[2] && y == a[3])
          puts("YES");
        else
          puts("NO");
      }
    }
    if (n == 3) {
      int flag = 0;
      for (int u = 1; u <= 1500; u++) {
        if (check(a[0], a[1], a[2], u)) {
          puts("YES");
          cout << u << endl;
          flag = 1;
          break;
        }
      }
      if (flag == 0) {
        puts("NO");
      }
    }
  }
  if (n == 1) {
    a[1] = a[0];
    a[3] = 3 * a[0];
    a[2] = 3 * a[0];
    if ((a[1] < 1 || a[1] > 1000000) || (a[3] < 1 || a[3] > 1000000) ||
        (a[2] < 1 || a[2] > 1000000))
      puts("NO");
    else {
      puts("YES");
      cout << a[1] << endl;
      cout << a[2] << endl;
      cout << a[3] << endl;
    }
  }
  return 0;
}
