Task: Program Execution
Input (English): 3, 3, ['2785', 'W', '4935']
Output (English): 5394