When peasant girl Qin Wanxing's stepmother trades away her marriage, the xiucai scholar she was meant to wed is swapped for a fool, and she is shoved into the fool's house as his wife. Just as she has given up all hope, a big rooster starts to talk: Don't cry, lass! The fool's house is a nest of gold — the scholar's is a den of wolves! Your stepsister stole your match; she's the one jumping into the wolves' den for you! Qin Wanxing goes along with it and marries into the Shen family, builds a fortune on her wonder-working rooster, and brings her simpleton husband back to his senses. In time the scholar fails his exams and her stepsister is repudiated — while the "fool" at her side has already risen all the way to zhuangyuan, first place in the imperial examination.