i dont know why my answer wrong

https://www.codechef.com/viewsolution/21075014
python 3.6

plsssss helppppppppppp meeeeeeeeeeeee
i need it now
URGENT