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