Task: Program Execution
Input (English): 2, 2, ['M', 'w', 'E', '1019', '763']
Output (English): 0