#include <bits/stdc++.h>
using namespace std;
void F(int x) {
  if (x <= 4)
    cout << "O-|";
  else
    cout << "-O|", x -= 5;
  int i = 1;
  for (i = 1; i <= x; i++) cout << "O";
  cout << "-";
  for (i; i <= 4; i++) cout << "O";
  cout << endl;
}
int main() {
  int x;
  cin >> x;
  if (x == 0) F(0);
  while (x > 0) {
    F(x % 10);
    x /= 10;
  }
}
