Task: Program Execution
Input (English): 7, 10, ['8003', 't', 'S', 'W', '465', '1033', '4571', '3623', '5223', '9625', '3353', '5949', '1585', 'T', 'D', '1083', '5271', '8041', 'n', 'R', 't', '5957', 'i', 'X', 'X', 'P']
Output (English): 9625, 5223, 3623, 4571