The Sleeping Beauty Paradox Explained