Task: Program Execution
Input (English): 2, 2, ['M', 'I', 'G', '3747']
Output (English): 0