Help me in solving BREAKSTICK problem

My issue

i am not understanded the question properly

My code

# cook your dish here

Problem Link: BREAKSTICK Problem - CodeChef

U have to break the stick in such way that one of its piece has length has X and all the pieces have same parity .
Same Parity means all even or all odd .