Task: Program Execution
Input (English): 2, 3, ['S', '3389', '9331', '375', '9197', '5857', '5607', '1915']
Output (English): 3389, 9331