Task: Program Execution
Input (English): 2, 5, ['Q', 'H', 'x', 'J', '4497', '6135', '3667', 'a', '3387', '2857', 'h', '2575', '1631', '3729', '6175', 'a', '1415']
Output (English): H, 3667, 2575, 1415