Is this sentence grammatically correct or not?

Is this correct?

Such cooperation can prepare students to be good team players and understand the value of other people’s perspectives.

Or should it be "...players and to understand..."

Or would both versions be correct?

Thank you!


I believe both are ok, but I suggest inserting 'to' gives 'understanding' equal emphasis with being good team players.