Dan Bi is a student in her final year of high school who is about to take her proficiency exam, but fears she won't pass and expresses the wish to faint. She decides to escape, jumping into a puddle of water that will enable her to travel back in time to the Joseon era.
In the kingdom, she meets Lee Do, the monarch of that nation. Unfortunately, his country is in the grip of a three-year drought. Lee Do is convinced that science and mathematics can provide a solution to this crisis. Dan Bi, who is not very good at studying, could prove to be the key to this great challenge.