A generalization of Kuzmin's theorem