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