#include <bits/stdc++.h>
using namespace std;
const char* nums[10] = {"",      "+",      "++",      "+++",      "++++",
                        "+++++", "++++++", "+++++++", "++++++++", "+++++++++"};
int main() {
  string s;
  getline(cin, s);
  int res = 0;
  int num = 0;
  bool op = true;
  for (size_t i = 0; i < s.length(); ++i) {
    if ((s[i] == '+') || (s[i] == '-')) {
      if (op)
        res += num;
      else
        res -= num;
      num = 0;
      op = (s[i] == '+');
    } else {
      num = num * 10 + s[i] - '0';
    }
  }
  if (op)
    res += num;
  else
    res -= num;
  string rs = to_string(res);
  for (size_t i = 0; i < rs.length(); ++i) {
    cout << "++++++++++++++++++++++++++++++++++++++++++++++++"
         << nums[rs[i] - '0'] << ".>";
  }
}
