#include <bits/stdc++.h>
using namespace std;
template <class A, class B>
inline bool mina(A &x, B y) {
  return (x > y) ? (x = y, 1) : 0;
}
template <class A, class B>
inline bool maxa(A &x, B y) {
  return (x < y) ? (x = y, 1) : 0;
}
int main() {
  char in[100];
  scanf("%s", in);
  int operands[20];
  char ops[20];
  int i = 0;
  int ptr = 0;
  while (ptr < strlen(in)) {
    int read = 0;
    sscanf(in + ptr, "%d%n", operands + i, &read);
    ptr += read;
    i++;
    if (ptr < strlen(in)) {
      sscanf(in + ptr, "%c", ops + i);
      ptr++;
    }
  }
  int counter = operands[0];
  for (int j = 1; j < i; j++) {
    if (ops[j] == '+') {
      counter += operands[j];
    } else {
      counter -= operands[j];
    }
  }
  char myout[10];
  sprintf(myout, "%d", counter);
  printf("%s\n", myout);
  for (int i = 0; i < strlen(myout); i++) {
    for (int j = 0; j < myout[i]; j++) {
      printf("+");
    }
    printf(".>");
  }
  printf("\n");
}
