Task: Program Execution
Input (English): 5, 5, ['W', 'I', 'z', 'T', '4845', 'T', '2271']
Output (English): 4845