Output is printing wrong answer but in custom input op is correct,tell me please the mistake commited

I have slightly modified some condition, plz try to submit now