#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m, a, b, h = 0, s = 0, q;
  cin >> n;
  vector<int> v;
  for (int i = 0; i < n; i++) {
    cin >> a;
    v.push_back(a);
  }
  sort(v.begin(), v.end());
  if (v[n - 1] >= v[n - 2] + v[n - 3])
    cout << "NO";
  else {
    cout << "YES" << endl;
    for (int i = 0; i < (n + 1) / 2; i++) cout << v[i * 2] << " ";
    for (int i = n / 2 - 1; i >= 0; i--) cout << v[i * 2 + 1] << " ";
  }
}
