def phnread(path):
    """Read a .PHN (or .WRD) file.

    Format: <BEGIN-SAMPLE> <ENDING-SAMPLE> <PHONE>
    Example:
        0 3050 h#
        3050 4559 sh
        4559 5723 ix
    """
    try:
        seq = []
        with open(path) as fp:
            for line in fp:
                ns, ne, ph = line.rstrip().split()
                seq.append(((int(ns), int(ne)), ph))
        return seq
    except FileNotFoundError:
        print(f"[{path}] does not exist!")
        return None