#include <bits/stdc++.h>
using namespace std;
int MAX = 1e6;
int main() {
  int n;
  scanf("%d", &n);
  vector<int> A(n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &A[i]);
  }
  if (n == 0) {
    printf("YES\n");
    printf("1\n1\n3\n3\n");
    return 0;
  }
  if (n == 1) {
    if (3 * A[0] > MAX) {
      printf("NO\n");
      return 0;
    }
    printf("YES\n");
    printf("%d\n%d\n%d\n", A[0], 3 * A[0], 3 * A[0]);
  }
  sort(A.begin(), A.end());
  if (n == 2) {
    int a = A[0];
    if (A[1] > 3 * a or 3 * a > MAX) {
      printf("NO\n");
      return 0;
    }
    printf("YES\n");
    if (A[1] < 3 * a) {
      printf("%d\n%d\n", 4 * a - A[1], 3 * a);
    } else
      printf("%d\n%d\n", a, 3 * a);
  }
  if (n == 3) {
    int a = A[0];
    int t = (A[1] + A[0]) / 4;
    if (t >= 1 and t * 3 == A[2]) {
      printf("YES\n%d\n", t);
      return 0;
    }
    if (A[2] > 3 * a or 3 * a > MAX) {
      printf("NO\n");
      return 0;
    }
    if (A[2] < 3 * a and (A[1] + A[2]) != 4 * a) {
      printf("NO\n");
      return 0;
    }
    printf("YES\n");
    if (A[2] < 3 * a) {
      printf("%d\n", 3 * a);
    } else
      printf("%d\n", 4 * a - A[1]);
  }
  if (n == 4) {
    bool ok = true;
    if (A[3] != 3 * A[0]) ok = false;
    if ((A[1] + A[2]) != 4 * A[0]) ok = false;
    if (ok) {
      printf("YES\n");
      return 0;
    } else {
      printf("NO\n");
      return 0;
    }
  }
  return 0;
}
