Realization of holonomic constraints and freezing of high frequency degrees of freedom in the light of classical perturbation theory. Part I