#include <bits/stdc++.h>
using namespace std;
bool flag = 0;
void sss(int &n, int &k) {
  if (flag == 0)
    n = n + k;
  else if (flag == 1)
    n = n - k;
}
void print(int &now, int k) {
  k += 48;
  if (k > now) {
    while (k != now) {
      printf("+");
      now++;
    }
  } else if (k < now) {
    while (k != now) {
      printf("-");
      now--;
    }
  }
  printf(".");
}
int main() {
  int i, k = 0, n = 0;
  char c;
  while ((c = getchar()) != EOF) {
    if (c >= '0' && c <= '9')
      n = n * 10 + c - '0';
    else if (c == '+') {
      sss(k, n);
      n = 0;
      flag = 0;
    } else if (c == '-') {
      sss(k, n);
      n = 0;
      flag = 1;
    }
  }
  sss(k, n);
  n = 0;
  int p = k, j;
  while (p) {
    p /= 10;
    n++;
  }
  if (k == 0) n = 1;
  int now = 0;
  for (i = n; i >= 1; i--) {
    p = k;
    for (j = 1; j <= i - 1; j++) p /= 10;
    p %= 10;
    print(now, p);
  }
  return 0;
}
