Task: Program Execution
Input (English): 3, 4, ['Z', '1067', '1607', '5781', '3471', 'W', 'x', 'G', '3835', '6267', '787', '985', '9303']
Output (English): 5781, 1607