#include <bits/stdc++.h>
using namespace std;
char x[15];
int main() {
  scanf("%s", x);
  int lenx = strlen(x);
  for (int i = lenx - 1; i >= 0; i--) {
    int dig = x[i] - '0';
    if (dig == 0)
      printf("O-|-OOOO\n");
    else if (dig == 1)
      printf("O-|O-OOO\n");
    else if (dig == 2)
      printf("O-|OO-OO\n");
    else if (dig == 3)
      printf("O-|OOO-O\n");
    else if (dig == 4)
      printf("O-|OOOO-\n");
    else if (dig == 5)
      printf("-O|-OOOO\n");
    else if (dig == 6)
      printf("-O|O-OOO\n");
    else if (dig == 7)
      printf("-O|OO-OO\n");
    else if (dig == 8)
      printf("-O|OOO-O\n");
    else
      printf("-O|OOOO-\n");
  }
}
