#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  long long n;
  string a;
  cin >> n;
  if (n == 0) cout << "O-|-OOOO" << endl;
  while (n) {
    a = "OOOOO";
    k = n % 10;
    if (k >= 5) {
      cout << "-O|";
      a[k - 5] = '-';
    } else {
      cout << "O-|";
      a[k] = '-';
    }
    cout << a << endl;
    n = n / 10;
  }
  return 0;
}
