#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  s += '+';
  int cal = 0, num = 0, op = 1;
  for (int i = 0; i < s.size(); ++i) {
    if (isdigit(s[i]))
      num = num * 10 + s[i] - '0';
    else {
      cal += op * num;
      num = 0;
    }
    if (s[i] == '+') op = 1;
    if (s[i] == '-') op = -1;
  }
  if (cal >= 100) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++";
    for (int i = 0; i < cal / 100; ++i) cout << "+";
    cout << ".>\n";
    cal %= 100;
  }
  if (cal >= 10) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++";
    for (int i = 0; i < cal / 10; ++i) cout << "+";
    cout << ".>\n";
    cal %= 10;
  }
  cout << "++++++++++++++++++++++++++++++++++++++++++++++++";
  for (int i = 0; i < cal; ++i) cout << "+";
  cout << ".\n";
  return 0;
}
