Task: Program Execution
Input (English): 4, 4, ['g', '3379', '1577', 'J', '351', '3383', '6095']
Output (English): 0