Task: Program Execution
Input (English): 10, 10, ['287', 'y', '2335', '953', '4611', '9001', 'g', '4767', '767', '7843', 'O', '6969', 'x', 'G']
Output (English): 7843