#include <bits/stdc++.h>
using namespace std;
int n;
int b[100005];
int a[100005];
int main() {
  cin.sync_with_stdio(0);
  cin.tie(0);
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b[i];
  }
  sort(b, b + n, greater<int>());
  for (int i = 0; i < n; i += 2) {
    a[i / 2] = b[i];
  }
  for (int i = 1; i < n; i += 2) {
    a[n - 1 - i / 2] = b[i];
  }
  for (int i = 0; i < n; i++) {
    int pre = (i - 1 + n) % n;
    int post = (i + 1) % n;
    if (a[i] >= a[pre] + a[post]) {
      cout << "NO\n";
      return 0;
    }
  }
  cout << "YES\n";
  for (int i = 0; i < n; i++) {
    cout << a[i] << " ";
  }
}
