#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (int &i : v) cin >> i;
  sort(v.begin(), v.end());
  if (v[n - 1] >= v[n - 2] + v[n - 3]) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (int i = n - 1; i >= 0; i -= 2) cout << v[i] << " ";
  for (int i = n % 2; i < n; i += 2) cout << v[i] << " ";
  cout << "\n";
  return 0;
}
