The energy and momentum of the ground

Imagine that you throw a ball in the air, and lands on the ground and stops (i.e., the collision is inelastic). What happened to the energy and momentum? The answer for energy is completely different from that for momentum, which is a trivial but interesting illustration of the differences between them. Also we get fun with infinities. Assume a ball of mass $m$ and velocity $v$ hits the ground and stops.