def split_indexes(indexes):
    """Split indexes list like 1 2 5 in 1 2 and 5."""
    left, right = [indexes[0], ], []
    left_now = True
    for i in range(1, len(indexes)):
        prev = indexes[i - 1]
        curr = indexes[i]
        if curr > prev + 1 and left_now:
            left_now = False
        if left_now:
            left.append(curr)
        else:
            right.append(curr)
    return left, right