codechef; solve "Ciel and A-B problem"