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