#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  for (int i = s.size() - 1; i >= 0; i--) {
    int x = s[i] - '0';
    if (x >= 5)
      printf("-O|");
    else
      printf("O-|");
    x = x % 5;
    if (x == 0)
      printf("-OOOO\n");
    else if (x == 1)
      printf("O-OOO\n");
    else if (x == 2)
      printf("OO-OO\n");
    else if (x == 3)
      printf("OOO-O\n");
    else
      printf("OOOO-\n");
  }
}
