Task: Program Execution
Input (English): 5, 7, ['I', '5439', 'J', '3995', '5349', '5143', '119', '7541', '3985', 'S', '5143', 'b', '5543', 'm', 'L', 'S', '2315', 'a', '3987']
Output (English): 5349, 5143, 119