#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1000 + 20, MAXM = 10 * 1000 + 20, INF = 1e9, MOD = 1e9 + 7;
int a[MAXN];
bool visit[MAXN];
int main() {
  string s;
  cin >> s;
  for (int i = s.size() - 1; i >= 0; i--) {
    int x = s[i] - '0';
    if (x >= 5) {
      cout << "-O|";
      x -= 5;
    } else
      cout << "O-|";
    for (int i = 1; i <= x; i++) cout << "O";
    cout << '-';
    for (int i = 0; i < 4 - x; i++) cout << "O";
    cout << endl;
  }
}
