Please help with this Game problem

Problem - G - Codeforces

In This problem from the perspective of player
a player will try to give other party x and y such that (x+y)%2==0

Can you tell how I can approach this code wise. Thank you.