#include <bits/stdc++.h>
int main() {
  int n, m = 0, x;
  scanf("%d", &n);
  int a[10];
  if (n == 0) {
    printf("O-|-OOOO");
    return 0;
  }
  while (n != 0) {
    a[m] = n % 10;
    n = n / 10;
    m++;
  }
  for (int i = 0; i < m; i++) {
    if (a[i] >= 5) {
      printf("-O|");
      x = a[i] - 5;
    } else {
      printf("O-|");
      x = a[i];
    }
    for (int j = 0; j < x; j++) {
      printf("O");
    }
    printf("-");
    for (int j = x; j < 4; j++) {
      printf("O");
    }
    printf("\n");
  }
  return 0;
}
