def create_rules(lines):
    """
    Given the list of line rules, create the rules dictionary.
    """
    rules = dict()
    for line in lines:
        sline = line.split()
        rules[sline[0]] = sline[-1]
    return rules