#include <bits/stdc++.h>
using namespace std;
int main() {
  string str;
  string numero = "";
  long long int res = 0;
  int ppres;
  getline(cin, str);
  str += '+';
  int x, p;
  for (int x = 0; x < str.length(); x++) {
    if (str[x] != '+' && str[x] != '-') {
      numero += str[x];
    } else {
      res = stoi(numero);
      break;
    }
  }
  int var = x + numero.length() - 1;
  numero = "0";
  for (int x = var; x < str.length(); x++) {
    int p = x + 1;
    if (str[x] == '+' || str[x] == '-') {
      while (str[p] != '+' && str[p] != '-' && p < str.length()) {
        numero += str[p];
        p++;
      }
      if (str[x] == '+') {
        res += stoi(numero);
      } else if (str[x] == '-') {
        res -= stoi(numero);
      }
    }
    x = p - 1;
    numero = "0";
  }
  cout << res << endl;
  if (res > 0) {
    for (int x = 0; x < res; x++) {
      cout << "+";
    }
  } else {
    cout << ">";
  }
  cout << endl;
  cout << ">>++++++++++<<[->+>-[>+>>]>[+[-<+>]>+>>]<<<<<<]>>[-]>>>++++++++++<[-"
          ">-[>+>>]>[+[-<+>]>+>>]<<<<<]>[-]>>[>++++++[-<++++++++>]<.<<+>+>[-]]<"
          "[<[->-<]++++++[->++++++++<]>.[-]]<<++++++[-<++++++++>]<.[-]<<[-<+>]<"
       << endl;
}
