#include <bits/stdc++.h>
using namespace std;
int a, i, t, op;
char c = 92;
string ch, second;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie();
  cin >> second;
  for (i = 0; i < second.length(); i++) {
    if (second[i] >= '0' && second[i] <= '9') {
      a = a * 10 + second[i] - '0';
    } else {
      while (a--) {
        cout << '+';
      }
      a = 0;
      cout << ">\n";
      t++;
      if (t > 1) {
        if (op == '+')
          cout << "<<[->+<]>>\n";
        else {
          cout << "<[<->-]<\n";
          cout << "[->+<]>>\n";
        }
      }
      op = second[i];
    }
  }
  while (a--) {
    cout << '+';
  }
  a = 0;
  cout << ">\n";
  t++;
  if (t > 1) {
    if (op == '+')
      cout << "<<[->+<]>>\n";
    else {
      cout << "<[<->-]<\n";
      cout << "[->+<]>>\n";
    }
  }
  cout << "<";
  cout
      << ">>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[->"
         "-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[>++++++[-<++++++++>]<.<<+>+>[-]]<[<"
         "[->-<]++++++[->++++++++<]>.[-]]<<++++++[-<++++++++>]<.[-]<<[-<+>]<";
  return 0;
}
