#include <bits/stdc++.h>
using namespace std;
void display(char c) {
  for (int i = (int)(0); i < (int)(c); ++i) cout << '+';
  cout << ".>";
}
void rek(int first) {
  if (!first) return;
  rek(first / 10);
  display('0' + first % 10);
}
int main() {
  ios_base::sync_with_stdio(false);
  string s;
  cin >> s;
  stringstream sin(s);
  int curr;
  sin >> curr;
  while (true) {
    char c;
    sin >> c;
    if (!sin) break;
    int tmp;
    sin >> tmp;
    if (c == '+')
      curr += tmp;
    else
      curr -= tmp;
  }
  if (curr < 0) display('-'), curr = -curr;
  if (curr == 0) display('0');
  rek(curr);
  return 0;
}
