#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 199;
const double Pi = acos(-1);
int main() {
  int n, m;
  string ans;
  scanf("%d", &n);
  if (n == 0) {
    printf("O-|-OOOO");
  } else {
    while (n) {
      m = n % 10;
      if (m >= 5) {
        m -= 5;
        printf("-O|");
      } else {
        printf("O-|");
      }
      for (int i = 0; i < m; i++) printf("O");
      m = 4 - m;
      printf("-");
      for (int i = 0; i < m; i++) printf("O");
      printf("\n");
      n /= 10;
    }
  }
  return 0;
}
