Momentum and collisions

A moving object collides with a stationary object and they stick together. What happens to the system's kinetic energy in a nontrivial collision?