#include <bits/stdc++.h>
using namespace std;
int main() {
  char final[] = "++++++++++++++++++++++++++++++++++++++++++++++++.>";
  int valor = 0;
  char c;
  short a, b;
  char nu[4];
  cin >> valor;
  while (cin >> c) {
    cin >> b;
    if (c == '+')
      valor += b;
    else if (c == '-')
      valor -= b;
  }
  sprintf(nu, "%d", valor);
  for (a = 0; a < strlen(nu); a++) {
    for (int i = 0; i < nu[a] - '0'; i++) printf("+");
    printf("%s\n", final);
  }
  return 0;
}
