#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  getline(cin, s);
  for (int i = s.length() - 1; i >= 0; i--) {
    int a = int(s[i] - '0');
    if (a < 5) {
      cout << "O-|";
      for (int j = 0; j < a; j++) cout << "O";
      cout << "-";
      for (int j = 0; j < 4 - a; j++) cout << "O";
      cout << endl;
    } else {
      int b = a - 5;
      cout << "-O|";
      for (int j = 0; j < b; j++) cout << "O";
      cout << "-";
      for (int j = 0; j < 4 - b; j++) cout << "O";
      cout << endl;
    }
  }
  return 0;
}
