#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int& t : a) cin >> t;
  sort(a.rbegin(), a.rend());
  deque<int> d;
  for (auto it = a.begin(); it != a.end(); ++it) {
    if (int(it - a.begin()) & 1)
      d.push_back(*it);
    else
      d.push_front(*it);
  }
  if (a[0] >= a[1] + a[2]) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (auto t : d) {
    cout << t << ' ';
  }
  cout << '\n';
  return 0;
}
