In an organization, 2026 doctors and 2027 engineers stand in a line. The boss's rule is that as he walks from the beginning to the end of the line, at any position the total number of engineers from the start to that position must always be greater than the total number of doctors from the start to that same position. Due to lack of time, everyone stood in the line randomly. The probability that they accidentally followed this rule can be written as , where and are coprime. Find .