This study will evaluate whether treating sleep apnea while in the hospital would help heart failure, and assist recovery from the worsening of the heart function more than the current clinical standard of waiting for treatment until the subject have left the hospital.