Each point on a circle was painted red or green. Show that there is an isosceles triangle whose vertices are on the circumference of the circle, such that all three vertices are red or all three are green.