Task: Program Execution
Input (English): 3, 8, ['5299', 'D', '1389', '5627', '1481', 'P', '411', 'I', '4447', '4467', '2873', '5487', 'd', '7583', 'G', '4661', 'D', 'b', 'X']
Output (English): 1389, 2873, X