#include <bits/stdc++.h>
using namespace std;
string s;
int a;
char ch;
vector<int> v;
void to(int res) {
  do {
    v.push_back(res % 10);
    res /= 10;
  } while (res);
  reverse(v.begin(), v.end());
}
void print() {
  for (auto it : v) {
    for (int i = 0; i < it + 48; i++) cout << '+';
    cout << '.';
    for (int i = 0; i < it + 48; i++) cout << '-';
  }
}
int main() {
  cin >> a;
  int res = a;
  while (cin >> ch) {
    cin >> a;
    if (ch == '-')
      res -= a;
    else
      res += a;
  }
  to(res);
  cerr << "ok" << endl;
  print();
  return 0;
}
