Task: Program Execution
Input (English): 3, 4, ['G', '6815', 'X', 'p', '4001', '6077', 'I', '1057', '9067']
Output (English): 0