Semi, a sharp-witted girl, embarks on a magical time-travel journey with her brilliant instructor, Wai, to stop the evil plans of villain X, who seeks to misuse the power of the magic cube. As they travel through time, Semi and her classmates from math school face numerous historical and mathematical puzzles that require logical thinking and quick action to solve.