$ 0 0 Thanks a ton!Problem: http://www.codechef.com/problems/PNTNGMy solution: http://www.codechef.com/viewsolution/4131658