a person dies, and arrives at the gate to heaven. there are three
doors. one of them leads to heaven. another one leads to a 1-day
stay at hell, and then back to the gate, and the other leads to a 2-
day stay at hell, and then back to the gate. every time the person is
back at the gate, the three doors are reshuffled. how long will it
take the person to reach heaven?