#include <bits/stdc++.h>
using namespace std;
const int MAXN = 10e5 + 5;
int a[MAXN];
int main() {
  int n;
  string s = "";
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  sort(a, a + n);
  if (a[n - 1] >= a[n - 2] + a[n - 3]) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (int i = n - 1; i >= 0; i -= 2) {
    cout << a[i] << " ";
  }
  for (int i = (n % 2); i <= n - 2; i += 2) {
    cout << a[i] << " ";
  }
  return 0;
}
