Prince Yavor and Princess Kristina are captured by the witch Pythia and live in her house in the forest. Every day the witch Pityia gives them a different task. The Ghost of Isaac Newton helps them to solve the problem. The audience learns that the solution to the problem is not "magical" but a consequence of the laws of physics.