#include <bits/stdc++.h>
using namespace std;
void outp(int n) {
  int rem = n % 10;
  if (n / 10 > 0) outp(n / 10);
  for (int i = 0; i < 48 + n % 10; i++) {
    cout << "+";
  }
  cout << ".";
  for (int i = 0; i < 48 + n % 10; i++) {
    cout << "-";
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  string s;
  cin >> s;
  int sz = (int)s.size();
  int last_sgn = 1;
  int last_nr = 0;
  int res = 0;
  for (int i = 0; i < sz; i++) {
    if (s[i] == '+' || s[i] == '-') {
      res += last_nr * last_sgn;
      last_nr = 0;
      last_sgn = s[i] == '+' ? 1 : -1;
    } else {
      last_nr = last_nr * 10 + s[i] - '0';
    }
  }
  res += last_nr * last_sgn;
  outp(res);
  return 0;
}
