Differential equations and topology. I