#include <bits/stdc++.h>
using namespace std;
int a[250];
char op[250];
int c = 0;
vector<string> split(string work, char delim, char dd) {
  vector<string> flds;
  if (!flds.empty()) flds.clear();
  string buf = "";
  int i = 0;
  while (i < (int)work.size()) {
    if (work[i] == delim || work[i] == dd) {
      op[c++] = work[i];
    }
    if (work[i] != delim && work[i] != dd) {
      buf += work[i];
    } else if (((int)buf.size()) > 0) {
      flds.push_back(buf);
      buf = "";
    }
    i++;
  }
  if ((int)buf.size()) {
    flds.push_back(buf);
  }
  return flds;
}
int main() {
  string s;
  cin >> s;
  vector<string> nums = split(s, '+', '-');
  int n = nums.size();
  int sum = stoi(nums[0]);
  for (int i = 1; i < n; i++) {
    a[i] = stoi(nums[i]);
    if (op[i - 1] == '+') {
      sum += a[i];
    } else {
      sum -= a[i];
    }
  }
  for (int i = 1; i <= sum; i++) {
    cout << "+";
  }
  cout << endl;
  cout
      << ">>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->"
         "-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[>++++++[-<++++++++>]<.<<+>+>[-]]<[<"
         "[->-<]++++++[->++++++++<]>.[-]]<<++++++[-<++++++++>]<.[-]<<[-<+>]<";
}
