Generalization of Erdős-Kac theorem