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