On the first integrals in the center problem