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