#include <bits/stdc++.h>
using namespace std;
int main() {
  string input;
  int len;
  char c;
  char op = 0;
  int n;
  string aux;
  getline(cin, input);
  len = input.length();
  for (int i = 0; i < len; i++) {
    aux = string();
    while (input[i] >= '0' && input[i] <= '9') {
      aux.push_back(input[i]);
      i++;
    }
    n = stoi(aux);
    cout << string(n, '+') << '>' << endl;
    switch (op) {
      case '+':
        cout << "<[<+>-]" << endl;
        break;
      case '-':
        cout << "<[<->-]" << endl;
        break;
    }
    if (input[i] == '+' || input[i] == '-') {
      op = input[i];
      continue;
    }
  }
  cout << ">++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->"
          "-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[>++++++[-<++++++++>]<.<<+>+>[-]]<["
          "<[->-<]++++++[->++++++++<]>.[-]]<<++++++[-<++++++++>]<.[-]<<[-<+>]"
       << endl;
}
