Monty Hall problem and frog riddle