Task: Program Execution
Input (English): 5, 8, ['3231', 'S', '1231', 'n', '289', '615', 'd', '7617', '4301', '4797', '1599', 'o', 'y', '8515', '2895', '6871', '5413', 't']
Output (English): 289, 615, d, 7617