#include <bits/stdc++.h>
using namespace std;
char s[100005];
int main() {
  scanf("%s", s);
  int len;
  for (len = 0; s[len]; len++)
    ;
  s[len] = '+';
  int cur = 0;
  int ptr;
  for (ptr = 0; s[ptr] >= '0' && s[ptr] <= '9'; ptr++)
    cur *= 10, cur += s[ptr] - '0';
  char sign = s[ptr];
  int res = cur;
  cur = 0;
  for (ptr = ptr + 1; s[ptr]; ptr++) {
    if (s[ptr] < '0' || s[ptr] > '9') {
      if (sign == '+') {
        res += cur;
      } else {
        res -= cur;
      }
      sign = s[ptr];
      cur = 0;
    } else
      cur *= 10, cur += s[ptr] - '0';
  }
  if (res == 0) {
    printf("++++++++++++++++++++++++++++++++++++++++++++++++.>\n");
    return 0;
  }
  stack<int> s;
  while (res) {
    s.push(res % 10);
    res /= 10;
  }
  while (!s.empty()) {
    for (int i = 0; i < s.top(); i++) printf("+");
    printf("\n");
    printf("++++++++++++++++++++++++++++++++++++++++++++++++.>\n");
    s.pop();
  }
  return 0;
}
