Task: Program Execution
Input (English): 6, 6, ['4607', '3361', '3629', 'X', 'w', '5759', 'l', 'Z', '639', 'X']
Output (English): 5759