#include <bits/stdc++.h>
using namespace std;
int main() {
  int timer;
  timer = 1;
  while (timer--) {
    long long n, i, j;
    cin >> n;
    do {
      j = n % 10;
      n /= 10;
      if (j >= 5)
        cout << "-O|";
      else
        cout << "O-|";
      j %= 5;
      for (i = 0; i < j; ++i) cout << "O";
      cout << "-";
      for (i = 0; i < 4 - j; ++i) cout << "O";
      cout << "\n";
    } while (n > 0);
  }
}
