#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int s = 0, a;
  char c = '+';
  while (1) {
    cin >> a;
    s += c == '+' ? a : -a;
    if (!(cin >> c)) break;
  }
  stringstream ss;
  string w;
  ss << s;
  ss >> w;
  cout << "++++++++++++++++++++++++++++++++++++++++++++++++";
  int now = 0;
  for (int i = 0; i < w.size(); ++i) {
    while (now + '0' < w[i]) cout << '+', now++;
    while (now + '0' > w[i]) cout << '-', now--;
    cout << '.';
  }
  return 0;
}
