# I have managed to solve it for the case when p=q only but for the rest getting a solution for u and v separately seems challenging.