Task: Program Execution
Input (English): 2, 5, ['3237', 'S', '2159', '3177', 'W', 'S', 'H', 't', 'q']
Output (English): S, 2159, 3177, W