#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  queue<char> op;
  int n = s.length();
  for (int i = 0; i < n; ++i) {
    if (s[i] == '+' || s[i] == '-') {
      op.push(s[i]);
      s[i] = ' ';
    }
  }
  stringstream ss;
  ss << s;
  int m = op.size();
  int x;
  ss >> x;
  for (int i = 0; i < m; ++i) {
    int q;
    ss >> q;
    if (op.front() == '+') {
      x += q;
    } else {
      x -= q;
    }
    op.pop();
  }
  stringstream ss2;
  ss2 << x;
  string h;
  ss2 >> h;
  for (int i = 0; i < h.length(); ++i) {
    string y = ">++++++++++++++++++++++++++++++++++++++++++++++++";
    for (int j = 0; j < h[i] - '0'; ++j) y += '+';
    cout << y << ".\n";
  }
  return 0;
}
