Task: Program Execution
Input (English): 3, 5, ['2749', '6479', 'x', 'D', '4509']
Output (English): x, D, 4509