#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:167772160")
const int INF = 1e9;
const double EPS = 1e-9;
const double PI = acos(-1.);
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-";
  long long n;
  int sd;
  cin >> n;
  do {
    sd = n % 10;
    n = n / 10;
    cout << a[sd] << endl;
  } while (n >= 1);
  return 0;
}
