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