Task: Program Execution
Input (English): 6, 12, ['W', '1073', 'E', '333', 'z', '5597', '6295', '8157', 'O', '5777', '5029', '7483', '4643', '543']
Output (English): 5597, 6295, 8157, O, 5777, 5029, 7483