Goofball Juzo bets his penis that he can sleep with high-class courtesan Komurasaki. There is no way this will happen, but fortunately Yonosuke, the most sexually experienced man alive, overhears his troubles and helps him out.
The same 17th century novel was adapted by Yasuzo Masumura as A Lustful Man.