#include <bits/stdc++.h>
using namespace std;
int lim = 1e6;
int n, a[4];
bool judg() {
  int i, b[4];
  memcpy(b, a, sizeof(a));
  sort(b, b + 4);
  return b[0] + b[3] == b[1] + b[2] && b[3] == 3 * b[0];
}
int main() {
  int i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  sort(a, a + n);
  if (!n)
    a[0] = 1, a[1] = 1, a[2] = 3, a[3] = 3;
  else if (n == 1)
    a[1] = 2 * a[0], a[2] = 2 * a[0], a[3] = 3 * a[0];
  else if (n == 2)
    a[2] = a[0] * 4 - a[1], a[3] = a[0] * 3;
  else if (n == 3) {
    for (i = 1; i <= lim; i++) {
      a[3] = i;
      if (judg()) break;
    }
  }
  if (judg()) {
    printf("YES\n");
    for (i = n; i < 4; i++) printf("%d\n", a[i]);
  } else
    printf("NO\n");
  return 0;
}
