#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  getline(cin, s);
  int i = 0, sum = 0;
  char sign = '+';
  while (i < s.size()) {
    string a = "";
    int n = 0;
    while (s[i] >= '0' && s[i] <= '9') {
      a.push_back(s[i++]);
    }
    int k = 1;
    for (int j = a.size() - 1; j >= 0; j--) {
      n += (a[j] - '0') * k;
      k *= 10;
    }
    if (sign == '+') {
      sum += n;
    } else {
      sum -= n;
    }
    sign = s[i];
    i++;
  }
  s = to_string(sum);
  for (i = 0; i < s.size(); i++) {
    for (int j = 1; j <= 48 + (s[i] - '0'); j++) {
      cout << '+';
    }
    cout << ".>" << endl;
  }
  return 0;
}
