#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  sort(a.begin(), a.end());
  vector<int> ans(n);
  int x = n / 2 - (n % 2 == 0);
  for (int i = 0; i < n; i++) {
    if (i % 2 == 0)
      ans[x - i / 2] = a[i];
    else
      ans[x + i / 2 + 1] = a[i];
  }
  bool ok = true;
  for (int i = 0; i < n; i++) {
    if (i == 0) {
      if (ans[i] >= ans[i + 1] + ans[n - 1]) {
        ok = false;
        break;
      }
    } else if (i == n - 1) {
      if (ans[i] >= ans[i - 1] + ans[0]) {
        ok = false;
        break;
      }
    } else {
      if (ans[i] >= ans[i + 1] + ans[i - 1]) {
        ok = false;
        break;
      }
    }
  }
  if (ok) {
    cout << "YES\n";
    for (auto i : ans) cout << i << " ";
    cout << '\n';
  } else
    cout << "NO\n";
  return 0;
}
