On integrability of the Euler-Poisson equations