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