#include <bits/stdc++.h>   using namespace std;   int main() {     string s[10] = { O-|-OOOO ,  O-|O-OOO ,  O-|OO-OO ,  O-|OOO-O ,  O-|OOOO- ,                      -O|-OOOO ,  -O|O-OOO ,  -O|OO-OO ,  -O|OOO-O ,  -O|OOOO- };     string num;     while (cin >> num) {       int i = num.size();       while (i--) cout << s[num[i] -  0 ] << endl;     }     return 0;   }   