Task: Program Execution
Input (English): 5, 10, ['7611', 'P', '4069', '3177', '7673', 'h', 'l', 'D', 'd', '8935', 'Y', '2249', 'B', '863', 'W', '7387', 'e', 'E']
Output (English): 8935, d, D, l, h, 7673