Solution :

Let O be the center of our circle, and vi  be the vector  , i = 1, 2, , 2002. Since  we have

 

     

 

 

where . Therefore

 and S takes its maximal value 20022 when w = 0.