Cardiac rehabilitation is a customized and supervised program of exercise and education that helps patients recover from heart disease like heart attacks, heart surgery, and stent and angioplasty procedures. The program has been shown to increase survival chances and help patients recover faster. It involves three stages - inpatient treatment in the hospital, supervised outpatient treatment a few times a week after leaving the hospital, and a long-term lifestyle change program focused on exercise and risk factor modification. The benefits of cardiac rehabilitation include strengthening the body, improving energy levels, reducing heart risks, and educating patients on healthy lifestyle changes.