Anthropic Decision Theory IV: Solving Selfish and Average-Utilitarian Sleeping Beauty — LessWrong