#include <bits/stdc++.h>
using namespace std;
int main() {
  int n = 0;
  long* A = new long[100000];
  cin >> n;
  int i = 0;
  for (i = 0; i < n; i++) cin >> A[i];
  sort(A, A + n);
  if (A[n - 1] >= A[n - 2] + A[n - 3])
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    cout << A[n - 2] << " " << A[n - 1] << " " << A[n - 3] << " ";
    for (i = n - 4; i >= 0; i--) cout << A[i] << " ";
  }
  return 0;
}
