$ 0 0 please can help me understand the editorial of lastdiglink: http://discuss.codechef.com/questions/4079/lastdig-editorial