Here how to handle the 12 bit integer,otherwise it is giving right ans for all the other test cases

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

For some reason, the problem is not visible to me. Please, post a screenshot or something.