#include <bits/stdc++.h>
using namespace std;
void solve() {
  int i, j, n, r;
  cin >> n;
  if (n == 0) {
    cout << "O-|-OOOO\n";
    return;
  }
  while (n > 0) {
    r = n % 10;
    if (r >= 5)
      cout << "-O|";
    else
      cout << "O-|";
    for (i = 1; i <= r % 5; i++) cout << "O";
    cout << "-";
    for (i = 4; i > r % 5; i--) cout << "O";
    cout << "\n";
    n /= 10;
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  int t = 1;
  while (t--) solve();
}
