Task: Program Execution
Input (English): 3, 2, ['l', '49', '5949', 'c', '8509', 'U', '8761', '8967', '8899', '9037', '1439', '121', 'T', 'B', '5195']
Output (English): 5949, 8509, 8761, 8899, 1439, T, 5195