Task: Program Execution
Input (English): 4, 4, ['2227', '1525', 'g', 'l', 'R']
Output (English): 0