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