#include <bits/stdc++.h>
using namespace std;
int main() {
  char num[11];
  while (scanf("%s", num) != EOF) {
    int i = 0;
    for (i = strlen(num) - 1; i >= 0; i--) {
      if (num[i] == '0') puts("O-|-OOOO");
      if (num[i] == '1') puts("O-|O-OOO");
      if (num[i] == '2') puts("O-|OO-OO");
      if (num[i] == '3') puts("O-|OOO-O");
      if (num[i] == '4') puts("O-|OOOO-");
      if (num[i] == '5') puts("-O|-OOOO");
      if (num[i] == '6') puts("-O|O-OOO");
      if (num[i] == '7') puts("-O|OO-OO");
      if (num[i] == '8') puts("-O|OOO-O");
      if (num[i] == '9') puts("-O|OOOO-");
    }
  }
  return 0;
}
