Some testcases failed

My code is correct, i believe but some cases are failed.please tell me what i am doing wrong.

as per output format you only need to print amount of strength when answer is Yes, don’t print amount in case of No