Given 500 points inside a convex 1000-sided polygon, along with the polygon's vertices (a total of 1500 points), none of which are collinear, the polygon is divided into triangles with these 1500 points as the vertices of the triangles. There are no other vertices apart from these. How many triangles is the convex 1000-sided polygon divided into?