Sleeping beauty

Sign in to test your solution.