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