#include <bits/stdc++.h>
using namespace std;
void soroban(int);
long n;
bool f = false;
int main() {
  cin >> n;
  for (; (n != 0) || (!f); n /= 10) {
    soroban(n % 10);
    f = true;
  }
  cin >> n;
  return 0;
}
void soroban(int p) {
  if (p >= 5)
    cout << "-O|";
  else
    cout << "O-|";
  for (int i = 1; i <= p % 5; i++) cout << "O";
  cout << "-";
  for (int i = 1; i <= 4 - p % 5; i++) cout << "O";
  cout << endl;
  return;
}
