#include <bits/stdc++.h>
using namespace std;
const char eol = '\n';
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); ++i) cin >> a[i];
  int t = 0;
  while (n - 1 - t >= 0 && a[n - 1 - t] == 0) t += 1;
  if (t == 0 || (t == 2 && accumulate(a.begin(), a.end(), 0) == n - 2)) {
    cout << "NO" << eol;
    return 0;
  }
  cout << "YES" << eol;
  if (t % 2 == 1) {
    for (int i = 0; i < (n - 1); ++i) cout << a[i] << "->";
    cout << a[n - 1] << eol;
  } else {
    for (int i = 0; i < (n - 1); ++i) {
      if (i > 0) cout << "->";
      cout << "(" << a[i];
    }
    for (int i = 0; i < (n - 1); ++i) cout << ")";
    if (n > 1) cout << "->";
    cout << "(" << a[n - 1] << ")";
    cout << eol;
  }
  return 0;
}
