#include <bits/stdc++.h>
using namespace std;
int n, a[100005];
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  sort(a + 1, a + n + 1);
  if (a[n] >= a[n - 1] + a[n - 2]) {
    cout << "NO";
    return 0;
  }
  cout << "YES\n";
  if (n % 2 == 1)
    for (int i = n; i >= 1; i -= 2) cout << a[i] << ' ';
  else
    for (int i = n - 1; i >= 1; i -= 2) cout << a[i] << ' ';
  for (int i = 2; i <= n; i += 2) cout << a[i] << ' ';
  return 0;
}
