Help me in solving AGELIMIT problem

My issue

I CANT UNDERSTAND

My code

# cook your dish here

Problem Link: AGELIMIT Problem - CodeChef

Hope you will understand the problem now

You have to check for the given age A is >= to X and < to Y. According to that you have to print YES or No