#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  if (n == 0) {
    cout << "O-|-OOOO"
         << "\n";
  }
  while (n > 0) {
    int a = n % 10;
    if (a == 9) {
      cout << "-O|OOOO-"
           << "\n";
    }
    if (a == 8) {
      cout << "-O|OOO-O"
           << "\n";
    }
    if (a == 7) {
      cout << "-O|OO-OO"
           << "\n";
    }
    if (a == 6) {
      cout << "-O|O-OOO"
           << "\n";
    }
    if (a == 5) {
      cout << "-O|-OOOO"
           << "\n";
    }
    if (a == 4) {
      cout << "O-|OOOO-"
           << "\n";
    }
    if (a == 3) {
      cout << "O-|OOO-O"
           << "\n";
    }
    if (a == 2) {
      cout << "O-|OO-OO"
           << "\n";
    }
    if (a == 1) {
      cout << "O-|O-OOO"
           << "\n";
    }
    if (a == 0) {
      cout << "O-|-OOOO"
           << "\n";
    }
    n = n / 10;
  }
  return 0;
}
