#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  if (n == 0) cout << "O-|-OOOO" << endl;
  while (n) {
    int x = n % 10;
    n /= 10;
    if (x >= 5) {
      cout << "-O|";
      x -= 5;
    } else
      cout << "O-|";
    switch (x) {
      case 1:
        cout << "O-OOO";
        break;
      case 2:
        cout << "OO-OO";
        break;
      case 3:
        cout << "OOO-O";
        break;
      case 4:
        cout << "OOOO-";
        break;
      default:
        cout << "-OOOO";
        break;
    }
    cout << endl;
  }
}
