Task: Program Execution
Input (English): 3, 3, ['y', '1007', '7545', 'X']
Output (English): 7545