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