#include <bits/stdc++.h>
using namespace std;
void Print(int n) {
  if (!n) return;
  Print(n / 10);
  printf(">");
  for (int i = 1; i <= '0' + n % 10; ++i) printf("+");
  printf(".\n");
}
int main() {
  int ans = 0, a;
  char c;
  scanf("%d", &ans);
  while (~scanf(" %c%d", &c, &a)) {
    if (c == '+')
      ans += a;
    else
      ans -= a;
  }
  if (ans)
    Print(ans);
  else {
    printf(">");
    for (int i = 1; i <= '0'; ++i) printf("+");
    printf(".\n");
  }
  return 0;
}
