Help me in solving PYMATARR1 problem

My issue

I am getting error in this code kindly describe me what is the proper approach to arrange it

Learning course: Basic Math using Python
Problem Link: Practice Problem in - CodeChef

@coderahul2002
this will be the correct rearrangement

if X >= Y:
    print(Y)
else:
    print(2*Y - X)