#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, f = 1;
  vector<string> v;
  string s;
  cin >> n;
  while (n != 0 || f) {
    int t = n % 10;
    if (t >= 5)
      s += "-O";
    else
      s += "O-";
    s += '|';
    if (t >= 5) t -= 5;
    if (t == 0)
      s += "-OOOO";
    else if (t == 1)
      s += "O-OOO";
    else if (t == 2)
      s += "OO-OO";
    else if (t == 3)
      s += "OOO-O";
    else if (t == 4)
      s += "OOOO-";
    v.push_back(s);
    n /= 10;
    s.clear();
    f = 0;
  }
  for (int i = 0; i < v.size(); i++) cout << v[i] << endl;
  return 0;
}
