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