#include <bits/stdc++.h>
using namespace std;
int a[10];
int main() {
  string s;
  cin >> s;
  s += '+';
  int l = 0;
  int res = 0;
  int mark = 1;
  if (s[0] == '-') {
    mark = -1;
    l = 1;
  }
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '+' || s[i] == '-') {
      string d = s.substr(l, i - l);
      l = i + 1;
      int b;
      b = atoi(d.c_str());
      if (mark == -1) b *= -1;
      res += b;
      if (s[i] == '+')
        mark = 1;
      else
        mark = -1;
    }
  }
  cout << "++++++++++++++++++++++++++++++++++++++++++++++++" << endl;
  if (res == 0) {
    cout << ".";
    return 0;
  }
  if (res < 0) {
    cout << "---." << endl;
    cout << "+++" << endl;
  }
  int k = 0;
  int dx = abs(res);
  while (dx != 0) {
    k++;
    a[k] = dx % 10;
    dx /= 10;
  }
  for (int i = 1; i <= k; i++) {
    int f = a[k - i + 1];
    if (f == 0) {
      cout << "." << endl;
    } else {
      string str;
      for (int j = 1; j <= f; j++) {
        cout << "+";
        str += '-';
      }
      cout << "." << endl;
      cout << str << endl;
    }
  }
  return 0;
}
