#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k = 1, c, t;
  cin >> n;
  t = n;
  while (t / 10 > 0) {
    t = t / 10;
    k++;
  }
  for (int i = 0; i < k; i++) {
    c = n % 10;
    if (c >= 5) {
      cout << "-O|";
      c = c - 5;
      if (c == 0) {
        cout << "-OOOO" << endl;
      }
      if (c == 1) {
        cout << "O-OOO" << endl;
      }
      if (c == 2) {
        cout << "OO-OO" << endl;
      }
      if (c == 3) {
        cout << "OOO-O" << endl;
      }
      if (c == 4) {
        cout << "OOOO-" << endl;
      }
    } else {
      cout << "O-|";
      if (c == 0) {
        cout << "-OOOO" << endl;
      }
      if (c == 1) {
        cout << "O-OOO" << endl;
      }
      if (c == 2) {
        cout << "OO-OO" << endl;
      }
      if (c == 3) {
        cout << "OOO-O" << endl;
      }
      if (c == 4) {
        cout << "OOOO-" << endl;
      }
    }
    n = n / 10;
  }
  return 0;
}
