#include <bits/stdc++.h>
using namespace std;
enum { MENOS, MAIS };
int main() {
  int resp = 0, val = 0, op = MAIS;
  char input, pal[200];
  while (scanf(" %c", &input) > 0) {
    if (input >= '0' && input <= '9')
      val *= 10, val += input - '0';
    else if (input == '+' || input == '-') {
      if (op)
        resp += val;
      else
        resp -= val;
      op = input == '+';
      val = 0;
    }
  }
  if (op)
    resp += val;
  else
    resp -= val;
  sprintf(pal, "%d", resp);
  for (int i = 0; i < strlen(pal); i++, printf(".>\n"))
    for (int j = 0; j < pal[i]; j++) printf("+");
}
