P3806 - Time Limit Exceeded