This problem is different from the surprise paradox, which relies on probability changing each day, and a possibility that either (a) the executioner will be proven a liar by randomly guessing Sunday, or (b) you confidently guessing Wednesday and being right.