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