#include <bits/stdc++.h>
using namespace std;
string str[10];
int main() {
  str[0] = "O-|-OOOO";
  str[1] = "O-|O-OOO";
  str[2] = "O-|OO-OO";
  str[3] = "O-|OOO-O";
  str[4] = "O-|OOOO-";
  str[5] = "-O|-OOOO";
  str[6] = "-O|O-OOO";
  str[7] = "-O|OO-OO";
  str[8] = "-O|OOO-O";
  str[9] = "-O|OOOO-";
  string input;
  cin >> input;
  for (long long i = input.length() - 1; i >= 0; i--) {
    cout << str[input[i] - '0'] << endl;
  }
  return 0;
}
