#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; ++i) {
    cin >> a[i];
  }
  sort(a, a + n);
  vector<long long> x, y;
  for (long long i = n - 1; i >= 1; i -= 2) {
    x.push_back(a[i]);
    y.push_back(a[i - 1]);
  }
  if (n % 2 == 1) x.push_back(a[0]);
  reverse(x.begin(), x.end());
  for (auto i : y) {
    x.push_back(i);
  }
  if (x[0] >= x[1] + x[n - 1]) {
    cout << "NO";
    return 0;
  }
  for (long long i = 1; i < n - 1; ++i) {
    if (x[i] >= x[i - 1] + x[i + 1]) {
      cout << "NO";
      return 0;
    }
  }
  if (x[n - 1] >= x[n - 2] + x[0]) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  for (auto i : x) cout << i << " ";
}
