Rewrite the following sentence to make it parallel in structure
He likes to play soccer and basketball and swim
He likes to play soccer, play basketball, and swim.
Complete the following task based on the instruction and optional input provided.### Instruction:
Rewrite the following sentence to make it parallel in structure

### Input:
He likes to play soccer and basketball and swim

### Output:
He likes to play soccer, play basketball, and swim.