def num_items_in_chunks(num_items, num_chunks):
    """
    Put num_items items to num_chunks drawers as even as possible.
    Return a list of integers, where ret[i] is the number of items put to drawer i.
    """
    num_items_per_chunk = int(num_items / num_chunks)
    ret = [num_items_per_chunk] * num_chunks
    for i in range(0, num_items % num_chunks):
        ret[i] = ret[i] + 1
    assert sum(ret) == num_items
    return ret