#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  char y;
  int z;
  cin >> x;
  while (cin >> y >> z) {
    if (y == '+') {
      x = x + z;
    }
    if (y == '-') {
      x = x - z;
    }
  }
  string c = to_string(x);
  for (int j = 0; j < c.length(); j++) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++";
    char b = c[j];
    int r = b - '0';
    for (int i = 0; i < r; i++) {
      cout << "+";
    }
    cout << ".>"
         << "\n";
  }
  return 0;
}
