Edit a given text by deleting the unnecessary words.
She went to the market to buy oranges and apples and bananas.
She went to the market to buy oranges, apples and bananas.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit a given text by deleting the unnecessary words.

### Input:
She went to the market to buy oranges and apples and bananas.

### Output:
She went to the market to buy oranges, apples and bananas.