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