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