Original: The Russian libretto was written by Shostakovich, Yevgeny Zamyatin, Georgy Ionin, and Alexander Preis, and is based on the story The Nose by Nikolai Gogol.
Simplified: He took the story called The Nose which was written by Nikolai Gogol.