When can you apply for medicare

When can you apply for medicare – Is Medicare free at age 65