#include <bits/stdc++.h>
char s[100005];
std::vector<int> v;
int main() {
  scanf("%s", s);
  int n = strlen(s);
  bool pc = 0;
  long long now = 0, pre = 0;
  bool first = true;
  for (int i = 0; i < n; i++) {
    if (s[i] <= '9' && s[i] >= '0') {
      now = now * 10 + s[i] - '0';
    } else {
      if (first) {
        first = false;
        pre = now;
      } else {
        if (pc)
          pre = pre + now;
        else
          pre = pre - now;
      }
      pc = (s[i] == '+');
      now = 0;
    }
  }
  if (pc)
    pre = pre + now;
  else
    pre = pre - now;
  if (pre == 0) v.push_back(0);
  while (pre) {
    v.push_back(pre % 10);
    pre /= 10;
  }
  for (int i = v.size() - 1; i >= 0; i--) {
    for (int j = 0; j < v[i] + '0'; j++) printf("+");
    printf(".");
    if (i != 0)
      printf(">");
    else
      printf("\n");
  }
  return 0;
}
