#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a;
  if (n == 0) a.push_back(0);
  while (n > 0) {
    a.push_back(n % 10);
    n /= 10;
  }
  for (int i = 0; i < a.size(); i++) {
    if (a[i] >= 5) {
      cout << "-O|";
      a[i] -= 5;
    } else
      cout << "O-|";
    for (int j = 0; j < a[i]; j++) cout << "O";
    cout << "-";
    for (int j = 0; j < 4 - a[i]; j++) cout << "O";
    cout << endl;
  }
  return 0;
}
