def get_decks(text):
    """
    >>> get_decks(EXAMPLE)
    [[9, 2, 6, 3, 1], [5, 8, 4, 7, 10]]
    """
    decks = [[], []]
    p = 0
    for line in text.strip().split("\n"):
        if line.startswith("Player"):
            continue
        if line == "":
            p += 1
            continue
        decks[p].append(int(line))

    return decks