Task: Program Execution
Input (English): 2, 5, ['T', '1721', '1493', '1905', '7943', 'C', 'B', 'v', 'F', 'C', '9707', '3801', '2913', '5215', '6725', 'X', 'T']
Output (English): 7943, 1905, 1493, 1721