Help me in solving MONSTER1 problem

My issue

My code

# cook your dish here

Problem Link: CodeChef: Practical coding for everyone

@mohamedjumail2
The logic is if x>y then only u can decrease health of the monster else u can’t.