Task: Program Execution
Input (English): 4, 6, ['D', 'o', '5013', '5343', 'F', 'w', 'q', 'H', 'D', '3461', 'F', '2413', '4851', 'Z', '2419', '3191', '5251', '3859', '6785', 'r', 'K', '631', 'G', '5135', 'E', '321']
Output (English): 5343, 3461, 3191, 631