# -*- Mode: Python; tab-width: 4 -*-

import string

table = {
    '0': '||,,,',
    '1': ',,,||',
    '2': ',,|,|',
    '3': ',,||,',
    '4': ',|,,|',
    '5': ',|,|,',
    '6': ',||,,',
    '7': '|,,,|',
    '8': '|,,|,',
    '9': '|,|,,'
    }

def postal_barcode (zip):
    r = []
    for digit in zip:
		if digit in string.digits:
			r.append (table[digit])
    return '|' + string.join (r, '') + '|'

if __name__ == '__main__':
	import sys
	if len(sys.argv) < 2:
		print postal_barcode ('52405-1191')
	else:
		print postal_barcode (sys.argv[1])
