Chef Shifu and Celebration || Doubt || Getting upexpected WA

PROBLEM STATEMENT : CHSHIFU Problem - CodeChef
CODE : CodeChef: Practical coding for everyone

Where am i going wrong ??
Any one can please help me !!