#include <bits/stdc++.h>
using namespace std;
inline int read() {
  int s = 0, w = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') w = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    s = s * 10 + ch - '0';
    ch = getchar();
  }
  return s * w;
}
int n, ans[100010], len;
int a[100010];
bool flag = true;
int main() {
  n = read();
  for (int i = 1; i <= n; i++) {
    a[i] = read();
  }
  sort(a + 1, a + 1 + n);
  for (int i = 1; i <= n; i += 2) ans[++len] = a[i];
  for (int i = n / 2 * 2; i >= 1; i -= 2) ans[++len] = a[i];
  ans[0] = ans[len], ans[len + 1] = a[1];
  for (int i = 1; i <= len; i++) {
    if (ans[i] >= ans[i - 1] + ans[i + 1]) flag = false;
  }
  if (flag == false)
    cout << "NO" << endl;
  else {
    cout << "YES" << endl;
    for (int i = 1; i <= len; i++) cout << ans[i] << " ";
  }
  return 0;
}
