#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  int i, len, x, sum;
  char ch;
  bool fl;
  cin >> s;
  s += '*';
  len = s.length();
  sum = x = 0;
  fl = 0;
  for (i = 0; i < len; i++) {
    if (s[i] >= '0' && s[i] <= '9') {
      x = x * 10 + (s[i] - '0');
    } else {
      if (fl) {
        if (ch == '+')
          sum += x;
        else if (ch == '-')
          sum -= x;
      } else {
        fl = 1;
        sum += x;
      }
      ch = s[i];
      x = 0;
    }
  }
  if (sum > 99) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum / 100, '+') << ".>\n";
    sum = sum % 100;
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum / 10, '+') << ".>\n";
    sum = sum % 10;
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum, '+') << ".>\n";
  } else if (sum > 9) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum / 10, '+') << ".>\n";
    sum = sum % 10;
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum, '+') << ".>\n";
  } else {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << string(sum, '+') << ".>\n";
  }
  return 0;
}
