#include <bits/stdc++.h>
using big = long long;
using namespace std;
int main() {
  char op;
  int x, y;
  string line;
  getline(cin, line);
  stringstream ss(line);
  ss >> x;
  int ans = x;
  while (ss >> op >> y) {
    switch (op) {
      case '+':
        ans = ans + y;
        break;
      case '-':
        ans = ans - y;
        break;
      default:
        break;
    }
  }
  auto ansString = to_string(ans);
  int now = 0;
  for (auto ch : ansString) {
    while (now < ch) {
      cout << "+";
      ++now;
    }
    while (now > ch) {
      cout << "-";
      --now;
    }
    cout << ".\n";
  }
}
