Task: Program Execution
Input (English): 2, 3, ['d', '513', '359', 'D', '3393', '1907', 'K', '3549', 'G', 'D', '6499']
Output (English): 513, 3393, 3549, 6499