In triangle A B C, it is given that angles B and C are congruent. Points P and Q lie on \overline{A C} and \overline{A B}, respectively, so that A P=P Q=Q B=B C. Angle A C B is r times as large as angle A P Q, where r is a positive real number. Find the greatest integer that does not exceed 1000 r.