Task: Program Execution
Input (English): 4, 6, ['4183', 'U', '993', '8661', '7819', '3155', 'p', 'q']
Output (English): 3155, 7819, 8661