#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0) cout << "O-|-OOOO";
  while (n != 0) {
    string str = "";
    int rem = n % 10;
    n = n / 10;
    if (rem > 4) {
      str = "-O|";
      rem = rem - 5;
    } else
      str = "O-|";
    if (rem == 0) {
      str += "-OOOO";
    } else if (rem == 1) {
      str += "O-OOO";
    } else if (rem == 2) {
      str += "OO-OO";
    } else if (rem == 3) {
      str += "OOO-O";
    } else if (rem == 4) {
      str += "OOOO-";
    }
    cout << str << endl;
  }
  return 0;
}
