#include <bits/stdc++.h>
using namespace std;
bool isop[1005];
vector<int> ops;
vector<int> what;
vector<int> num;
int main() {
  string s;
  cin >> s;
  int n = s.size();
  ops.push_back(-1);
  what.push_back(0);
  for (int i = 0; i < n; i++) {
    if (s[i] == '+')
      ops.push_back(i), what.push_back(1);
    else if (s[i] == '-')
      ops.push_back(i), what.push_back(-1);
  }
  ops.push_back(n);
  what.push_back(0);
  for (int i = 0; i < (int)ops.size() - 1; i++) {
    int st = ops[i] + 1;
    int ed = ops[i + 1] - 1;
    int run = 0;
    for (int j = st; j <= ed; j++) {
      run *= 10;
      run += s[j] - '0';
    }
    num.push_back(run);
  }
  int res = num[0];
  for (int i = 1; i < (int)ops.size() - 1; i++) {
    res += what[i] * num[i];
  }
  vector<int> fin;
  if (res == 0) fin.push_back(0);
  while (res) {
    fin.push_back(res % 10);
    res /= 10;
  }
  reverse(fin.begin(), fin.end());
  for (int i = 0; i < (int)fin.size(); i++) {
    for (int j = 0; j < 48 + fin[i]; j++) printf("+");
    printf(".>\n");
  }
}
