def main(argv):
    if (len(argv) == 1):
        fin = sys.stdin
    else:
        fin = open(argv[1])
    while 1:
        try:
            line = fin.readline()
        except KeyboardInterrupt:
            break
        if (not line):
            break
        process_line(line)
def main(argv):
    if (len(argv) == 1):
        fin = sys.stdin
    else:
        fin = open(argv[1])
    while 1:
        try:
            line = fin.readline()
        except KeyboardInterrupt:
            break
        if (not line):
            break
        process_line(line)