#include <bits/stdc++.h>
using namespace std;
bool Pairsecond(const pair<int, int>& pf, pair<int, int>& ps) {
  return pf.second < ps.second;
}
int main() {
  int n;
  cin >> n;
  vector<int> a;
  for (int i = 0; n > i; i++) {
    int tmp;
    cin >> tmp;
    a.push_back(tmp);
  }
  sort(a.begin(), a.end());
  if (a[a.size() - 1] >= a[a.size() - 2] + a[a.size() - 3]) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  for (int i = 0; n > i; i += 2) {
    cout << a[i] << " ";
  }
  for (int i = n - (n % 2 == 0 ? 1 : 2); 0 < i; i -= 2) {
    cout << a[i];
    if (i - 2 > 0) cout << " ";
  }
  cout << endl;
}
