#include <bits/stdc++.h>
using namespace std;
int n, u[200005];
string s;
bool op() {
  int sm = 0, ss = 0, sss = 0, a[10], an = 0, b[10], bn = 0;
  for (int i = 0; i < s.length(); i++) {
    if (u[i])
      sm += (s[i] - '0') * 10 + s[++i] - '0';
    else
      sm += s[i] - '0';
  }
  for (; sm; sm /= 10) {
    a[++an] = sm % 10;
    ss += a[an];
  }
  for (; ss; ss /= 10) {
    b[++bn] = ss % 10;
    sss += b[bn];
  }
  if (sss < 10) {
    for (int i = 0; i < n; i++) {
      if (i > 0) cout << "+";
      cout << s[i];
      if (u[i]) cout << s[++i];
    }
    cout << endl;
    for (int i = an; i > 0; i--) {
      cout << a[i] << (i == 1 ? "" : "+");
    }
    cout << endl;
    for (int i = bn; i > 0; i--) {
      cout << b[i] << (i == 1 ? "" : "+");
    }
    return false;
  }
  return true;
}
int main() {
  cin >> n >> s;
  for (int i = 0; op(); i++) {
    for (; s[i] == '0'; i++)
      ;
    u[i] = 1;
    i += 2;
  }
  return 0;
}
