Task: Program Execution
Input (English): 4, 4, ['5701', 'y', '1613', '5743', 'X']
Output (English): 5743