wrong answer lucky lucky number

http://www.codechef.com/viewsolution/3283094
pls help thanks in advance