#include <bits/stdc++.h>
using namespace std;
int main() {
  int d[100008] = {0};
  int n = 0, f = 0;
  cin >> n;
  for (f = 0; f < n; f++) cin >> d[f];
  sort(d, d + n);
  if (d[n - 1] >= d[n - 2] + d[n - 3])
    cout << "NO";
  else {
    cout << "YES\n";
    for (f = n - 1; f >= 0; f -= 2) cout << d[f] << ' ';
    f = n % 2;
    for (; f < n; f += 2) {
      cout << d[f];
      if (f != n - 2) cout << ' ';
    }
  }
  return 0;
}
