#include <bits/stdc++.h>
using namespace std;
int n;
int a[100005];
int b[200010];
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    cin >> a[i];
  }
  sort(a + 1, a + n + 1);
  b[100000] = a[n];
  int cntr = 0;
  for (int i = n - 1; i > 0; i -= 2) {
    cntr++;
    b[100000 + cntr] = a[i];
  }
  int cntl = 0;
  for (int i = n - 2; i > 0; i -= 2) {
    cntl++;
    b[100000 - cntl] = a[i];
  }
  b[100000 - cntl - 1] = b[100000 + cntr];
  b[100000 + cntr + 1] = b[100000 - cntl];
  for (int i = 100000 - cntl; i <= 100000 + cntr; ++i) {
    if (b[i] >= b[i - 1] + b[i + 1]) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  for (int i = 100000 - cntl; i <= 100000 + cntr; ++i) {
    cout << b[i] << " ";
  }
  cout << endl;
  return 0;
}
