Task: Program Execution
Input (English): 2, 2, ['7347', 'M', 'J']
Output (English): 0