#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0) cout << "O-|-OOOO";
  string rez = "";
  while (n > 0) {
    int cd = n % 10;
    if (cd / 5)
      rez = rez + "-O";
    else
      rez = rez + "O-";
    rez += "|";
    for (int ctr1 = 0; ctr1 < 5; ctr1++)
      rez = rez + ((ctr1 == cd % 5) ? '-' : 'O');
    rez = rez + '\n';
    n /= 10;
  }
  cout << rez << endl;
  return 0;
}
