Task: Program Execution
Input (English): 10, 10, ['Q', '6615', '963', '9003', 'x', '1355', '2671', '2053', '773', '9565', '4645', 'Z', 'P', 'F', '3437', 'V', 'a']
Output (English): 9565