#include <bits/stdc++.h>
int main() {
  int n, i, r = 0;
  bool pl = true;
  std::string s;
  std::cin >> s;
  i = 0;
  while (i < s.size()) {
    n = 0;
    while ((i < s.size()) && (s[i] != '-') && (s[i] != '+')) {
      n *= 10;
      n += (s[i] - '0');
      i++;
    }
    if (pl)
      r += n;
    else
      r -= n;
    if ((s[i] == '+') || (s[i] == '-')) {
      if (s[i] == '-')
        pl = false;
      else
        pl = true;
      i++;
    }
  }
  std::cout << "++++++++++++++++++++++++++++++++++++++++++++++++" << std::endl;
  if (r > 99) {
    n = r / 100;
    for (i = 0; i < n; i++) std::cout << '+';
    std::cout << '.';
    for (i = 0; i < n; i++) std::cout << '-';
  }
  if (r > 9) {
    n = r / 10 % 10;
    for (i = 0; i < n; i++) std::cout << '+';
    std::cout << '.';
    for (i = 0; i < n; i++) std::cout << '-';
  }
  {
    n = r % 10;
    for (i = 0; i < n; i++) std::cout << '+';
    std::cout << '.';
  }
  return 0;
}
