#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, t = 8;
  char c;
  std::stack<int> st;
  scanf("%d", &a);
  while (cin >> c && c != 'eof') {
    scanf("%d", &b);
    c == '+' ? a += b : a -= b;
  }
  if (a != 0) {
    while (a != 0) {
      st.push(a % 10);
      a /= 10;
    }
    while (!st.empty()) {
      a = st.top();
      st.pop();
      for (int i = 0; i < a; i++) printf("+");
      printf("\n");
      printf("++++++++++++++++++++++++++++++++++++++++++++++++.");
      printf(">");
    }
  } else {
    printf("++++++++++++++++++++++++++++++++++++++++++++++++.");
  }
  return 0;
}
