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