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