#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, t;
  vector<string> v;
  v.push_back("O-|-OOOO");
  v.push_back("O-|O-OOO");
  v.push_back("O-|OO-OO");
  v.push_back("O-|OOO-O");
  v.push_back("O-|OOOO-");
  v.push_back("-O|-OOOO");
  v.push_back("-O|O-OOO");
  v.push_back("-O|OO-OO");
  v.push_back("-O|OOO-O");
  v.push_back("-O|OOOO-");
  cin >> n;
  if (n == 0) {
    cout << v[0] << endl;
    return 0;
  }
  while (n) {
    cout << v[n % 10] << endl;
    n /= 10;
  }
  return 0;
}
