#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n], b[n];
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  int j = 0, k = n - 1;
  if (a[n - 3] + a[n - 2] <= a[n - 1]) {
    cout << "NO";
    exit(0);
  }
  for (int i = 0; i < n; i += 2) {
    b[j] = a[i];
    if (j != k) b[k] = a[i + 1];
    j++;
    k--;
  }
  cout << "YES"
       << "\n";
  for (int i = 0; i < n; i++) {
    cout << b[i] << " ";
  }
}
