If A1,A2,...An are vertices of regulr polygen of n sides, inscribed in circle of radius r, whose cnetre is origin O, any P is any point on the arc An,A1 such that ∠POA1=θ. The value of sum of lenghts of the lines joining P to the angluar points of the polygen is