#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  long long a[n];
  for (long long i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  if (a[n - 1] >= a[n - 2] + a[n - 3]) {
    cout << "NO\n";
    return 0;
  }
  cout << "YES\n";
  for (long long i = 0; i < n; i += 2) cout << a[i] << " ";
  for (long long i = n - n % 2 - 1; i >= 0; i -= 2) cout << a[i] << " ";
  return 0;
}
