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