4.45 In a convex polygon, draw all diagonals, and color each side and each diagonal with one of $k$ colors, so that there is no monochromatic closed broken line with the vertices of the polygon as its vertices. How many vertices can such a polygon have at most?