#include <bits/stdc++.h>
using namespace std;
void init() { freopen("input.txt", "r", stdin); }
void printDigit(signed long int x) {
  if (x < 5) {
    printf("O-|");
  } else {
    printf("-O|");
  }
  switch (x % 5) {
    case 0:
      printf("-OOOO");
      break;
    case 1:
      printf("O-OOO");
      break;
    case 2:
      printf("OO-OO");
      break;
    case 3:
      printf("OOO-O");
      break;
    case 4:
      printf("OOOO-");
      break;
  }
  printf("\n");
}
void solve() {
  signed long int n;
  cin >> n;
  do {
    printDigit(n % 10);
    n /= 10;
  } while (n > 0);
}
void output() {}
int main() {
  solve();
  output();
  return 0;
}
