#!/usr/local/bin/python

import pyx12.x12file
import pyx12.error_handler
import sys

errh = pyx12.error_handler.err_handler()
fd = sys.stdin
src = pyx12.x12file.x12file(fd, errh)
for c in src:
    src.print_seg(c)
