#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, sum = 0;
  cin >> n;
  int a1 = n;
  while (a1 > 0) {
    int remainder = a1 % 10;
    sum++;
    a1 = a1 / 10;
  }
  int a[sum];
  int i = 0;
  a1 = n;
  while (a1 > 0) {
    int remainder = a1 % 10;
    a[i] = remainder;
    a1 = a1 / 10;
    i++;
  }
  if (n == 0) cout << "O-|-OOOO" << endl;
  for (int i = 0; i < sum; i++) {
    if (a[i] == 0) {
      cout << "O-|-OOOO" << endl;
    } else if (a[i] == 1) {
      cout << "O-|O-OOO" << endl;
    } else if (a[i] == 2) {
      cout << "O-|OO-OO" << endl;
    } else if (a[i] == 3) {
      cout << "O-|OOO-O" << endl;
    } else if (a[i] == 4) {
      cout << "O-|OOOO-" << endl;
    } else if (a[i] == 5) {
      cout << "-O|-OOOO" << endl;
    } else if (a[i] == 6) {
      cout << "-O|O-OOO" << endl;
    } else if (a[i] == 7) {
      cout << "-O|OO-OO" << endl;
    } else if (a[i] == 8) {
      cout << "-O|OOO-O" << endl;
    } else if (a[i] == 9) {
      cout << "-O|OOOO-" << endl;
    }
  }
}
