#include <bits/stdc++.h>
using namespace std;
int main() {
  long long a;
  cin >> a;
  do {
    int t = a % 10;
    string s = "--|-----";
    if (t >= 5)
      s[1] = 'O', t -= 5;
    else
      s[0] = 'O';
    int i = 3;
    while (t > 0) s[i++] = 'O', t--;
    for (i = i + 1; i < ((int)((s).size())); i++) s[i] = 'O';
    cout << s << endl;
    a /= 10;
  } while (a);
}
