#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 1041;
const char* ZERO = "++++++++++++++++++++++++++++++++++++++++++++++++";
void print(int a) {
  printf(ZERO);
  for (int i = 0; i < a; i++) {
    printf("+");
  }
  printf(".");
}
void next() { printf(">"); }
void solve() {
  int sum;
  char tmp[10];
  scanf("%d", &sum);
  while (scanf("%[-+]", tmp) == 1) {
    int a;
    scanf("%d", &a);
    switch (tmp[0]) {
      case '+':
        sum += a;
        break;
      case '-':
        sum -= a;
        break;
      default:
        assert(false);
    }
  }
  if (sum == 0) {
    print(0);
    return;
  }
  if (sum >= 100) {
    print(sum / 100);
    next();
    sum %= 100;
  }
  if (sum >= 10) {
    print(sum / 10);
    next();
    sum %= 10;
  }
  print(sum);
}
void read() {}
int main() {
  read();
  solve();
  return 0;
}
