#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  for (int i = s.length() - 1; i >= 0; i--) {
    int a = s[i] - '0';
    if (a >= 5) {
      cout << "-O|";
      a -= 5;
    } else {
      cout << "O-|";
    }
    if (a == 0) {
      cout << "-OOOO";
    }
    if (a == 1) {
      cout << "O-OOO";
    }
    if (a == 2) {
      cout << "OO-OO";
    }
    if (a == 3) {
      cout << "OOO-O";
    }
    if (a == 4) {
      cout << "OOOO-";
    }
    cout << '\n';
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
