Delhi's even odd problem

the code is not giving the correct output. It is showing yes in the output, it should show yes and no both in it. I am not gettinng what is wrong with the code. Help me out

@ankita_10 Please save your code on ide.codingblocks.com and share its link.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

@ankita_10
Please share the code ide link after saving it on ide.codingblocks.com
It will not possible to tell the mistake without looking at your code.

@ankita_10
you are not taking inputs correctly, there are n cars for which you need to check this.
you are just taking one input and checking for that.

@ankita_10
also the output you are printing is wrong.
it should be “Yes” not “YES”.
same for “No”

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.