I have query regarding WEBDEV certification exam1

HI @Pratik-TA-FSR , @akhtar.rashid93 sir. recently i have completed my WEBDEV certification exam1.round1 but i have query facing in that coding question 3. the input format of input3 is not in format of given examples in the question. so thatwhy i lost all marks by that question so please check my code . everything my code is ok but input format of the question is not valid. also i am attaching the images .
name : vishnu,
email : vittuvishnu420@gmail.com

please check anyone. batch : FSR310723