Task: Program Execution
Input (English): 5, 11, ['f', '1509', '5219', 'S', '3707', '1355', '2727', 'i', 'A', 'H', 'p', 'X', 'n', '4991', '7267', '573', 'p']
Output (English): 3707, 1355, 2727, i, A, H, p