Task: Program Execution
Input (English): 2, 5, ['j', 'W', 'T', 'S', '111', '5551']
Output (English): 111