Task: Program Execution
Input (English): 8, 10, ['p', 'o', 'e', '1499', '153', '6507', '6341', '5345', '5971', 'R', '5161', '6675', '7633']
Output (English): 5345, 5971, R