def split_line(line):
    """
    Converts a single input line into its elements.
    Result is a dict containing the keys low, high, letter and passwd.
    """
    parts = line.split()
    numbers = parts[0].split("-")
    
    d = dict()
    d["low"] = int(numbers[0])
    d["high"] = int(numbers[1])
    d["letter"] = parts[1][:-1]
    d["passwd"] = parts[2]

    return d