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