#include <bits/stdc++.h>
using namespace std;
string s;
int main() {
  cin >> s;
  int p = 0, q = 1, ans = 0;
  for (int i = 0; i <= s.size(); ++i) {
    if (s[i] == '-' || s[i] == '+' || i == s.size()) {
      ans += p * q;
      p = 0;
      if (i == s.size())
        ;
      else if (s[i] == '-')
        q = -1;
      else if (s[i] == '+')
        q = 1;
    } else
      p = p * 10 + s[i] - 48;
  }
  stringstream r;
  r << ans;
  string g;
  r >> g;
  for (int i = 0; i < g.size(); ++i) {
    int p = g[i];
    while (p--) putchar('+');
    putchar('.');
    putchar('>');
    puts("");
  }
}
