Task: Program Execution
Input (English): 4, 10, ['a', 'R', 'D', '2747', '4421', '3031', 'O', 'K', 'p', 'X', 'T', '4735', 's', '1003']
Output (English): 2747, 4421, 3031, O, K, p, X