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