58. In front of the school gym, there is a row of colorful flags, arranged alternately from south to north with 7 red flags and 5 yellow flags. It is known that the last flag in the north is a red flag, and the total number of flags in this row does not exceed 200. The maximum number of flags in this row is $\qquad$.

将上面的文本翻译成英文，请保留源文本的换行和格式，直接输出翻译结果。
Reference answer: 199