Task: Program Execution
Input (English): 9, ['8511', 'R', '3957', '739', '4583', 'g', '6581', '7729', '8787', 'M', '4053', '9775', 'h', 'b', 'X', 'y', '2607', 'R', '7281']
Output (English): 8511, M, 7281