WA for 'Spam Classification Using Neural Net'

Please help me out with this question. I am getting WA.

Question : https://www.codechef.com/problems/SPAMCLAS

My solution : https://www.codechef.com/viewsolution/18343230

Thank you.

Seems like overflow problem.