#include <bits/stdc++.h>
using namespace std;
void otp(int ans) {
  for (int i = 0; i < ans; i++) cout << "+";
  cout << endl;
  cout << "++++++++++++++++++++++++++++++++++++++++++++++++." << endl;
  cout << "------------------------------------------------" << endl;
  for (int i = 0; i < ans; i++) cout << "-";
}
int main() {
  int a, b;
  int ans = 0;
  char op;
  cin >> ans;
  while (scanf("%c", &op) != EOF) {
    if (op == '+') {
      cin >> a;
      ans += a;
    } else if (op == '-') {
      cin >> a;
      ans -= a;
    } else
      break;
  }
  if (ans >= 100) {
    otp(ans / 100);
    otp(ans % 100 / 10);
    otp(ans % 10);
  } else if (ans >= 10) {
    otp(ans % 100 / 10);
    otp(ans % 10);
  } else
    otp(ans);
  return 0;
}
