#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  for (int i = s.size() - 1; i >= 0; --i) {
    int k = s[i] - '0';
    if (k >= 5)
      cout << "-O";
    else
      cout << "O-";
    cout << "|";
    k %= 5;
    int j;
    for (j = 0; j < k; ++j) cout << "O";
    cout << "-";
    for (j; j < 4; ++j) cout << "O";
    cout << endl;
  }
}
