Олимпиадный тренинг

Задача 39159. File Analysis - 08


The text file consists of the characters M, A, R, S. Define the maximum number of consecutive characters  in the attached file, among which there are no consecutive characters M. To complete this task, you must write a program.

Assignment file