Task: Program Execution
Input (English): 1, ['4965', '8291', 'Q', 'X', 'T', '2271', 'k', '4231']
Output (English): 4965