def get_inputs( filename ):
    """
    The input file contains rules and messages separated by a blank line.
    """
    with open( filename, 'r') as input_file:
        raw_data = input_file.read().split('\n\n')
    rules = raw_data[0].splitlines()
    messages = raw_data[1].splitlines()
    return rules, messages