Task: Program Execution
Input (English): 3, 3, ['R', 'M', 'v', 'a']
Output (English): 0