What is the difference between CAD, CAM, and CIM?

What is the difference between CAD, CAM, and CIM?