Another phrase is "an apple a day keeps the doctor away." This means that if you eat enough healthy foods, like fruits and vegetables, on a daily basis, you'll be healthy enough to "keep the doctor away" (aka visit the doctor less frequently).