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