#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 15;
const int MXN = 1e3 + 15;
int n, m;
int main() {
  cin >> m;
  if (m == 0) cout << "O-|-OOOO";
  while (m) {
    int n = m % 10;
    if (n < 5) {
      cout << "O-|";
      for (int i = 1; i <= n; ++i) cout << 'O';
      cout << '-';
      for (int i = 1; i <= 4 - n; ++i) cout << "O";
    } else {
      n -= 5;
      cout << "-O|";
      for (int i = 1; i <= n; ++i) cout << "O";
      cout << '-';
      for (int i = 1; i <= 4 - n; ++i) cout << "O";
    }
    cout << "\n";
    m /= 10;
  }
  return 0;
}
