Three prisoners problem.
Six cases, which upper case means which one will be executed, and the name in bracket is guard’s answer.
Case 1: X Y z [Y]
Case 2: X Y z [Y]
Case 3: X y Z [Z]
Case 4: X y Z [Z]
Case 5: x Y Z [Y]
Case 6: x Y Z [Z]
In the original, the probability of X is 2/3. After guard telled Y is executed, the probability is the same.