Task: Program Execution
Input (English): 2, 6, ['5147', '5227', '6761', '3689', '7177', 'g', '2563', 'W', 'a', '43', '7917', '5519', 'B', '7179', '7627', '8513', '4755']
Output (English): 5227, W, 7179