#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  string s, bb = "++++++++++++++++++++++++++++++++++++++++++++++++";
  int esq = 0;
  int dir = 0;
  char op;
  cin >> esq;
  while (cin >> op) {
    cin >> dir;
    if (op == '+') {
      esq += dir;
    } else
      esq -= dir;
  }
  int k = esq;
  cout << esq << ' ' << k << endl;
  string aux = to_string(k);
  for (int i = 0; i < aux.size(); i++) {
    string ba = "";
    for (int j = 0; j < aux[i] - '0'; j++) {
      ba.push_back('+');
    }
    cout << bb + ba + '.' + '>' << '\n';
  }
  return 0;
}
