Optimal distribution of the influenza vaccine