def prepare(raw_input):
    """
    Input is organized in three chunks: (1) rules, (2) my ticket, (3) tickets nearby.
    Must be prepared following different rules.
        (1) label ':' lower 'or' upper ',' lower 'or' upper
        (2) header line "your ticket:" followed by one line of comma separated integers
        (3) same as (2), but many lines of comma separated integers
    The CSV lines have always as many fields as there are rules in (1).
    """
    rules, my_ticket, tickets_nearby = [line for line in raw_input.split('\n\n')]
    return rules, my_ticket, tickets_nearby