WA in "Lucky Number Game" (HP18)

https://www.codechef.com/viewsolution/31010207