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