#include <bits/stdc++.h>
using namespace std;
void print(int n) {
  string x = "";
  if (n >= 5) {
    x += "-O|";
    n -= 5;
  } else {
    x += "O-|";
  }
  while (n--) {
    x += "O";
  }
  x += '-';
  while (x.size() < 8) x += "O";
  cout << x << endl;
}
int main() {
  int n;
  cin >> n;
  if (n == 0) cout << "O-|-OOOO";
  while (n) {
    print(n % 10);
    n /= 10;
  }
}
