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