It is important to know when to sign up for Medicare Part A and Part B. You sign up for Medicare for the first time during your Initial Enrollment Period (IEP). The Initial Enrollment Period is the