Task: Program Execution
Input (English): 10, 10, ['F', 'p', 'd', '8019', 'G', 'h', '1173', '8183', 'S', 'X', 'P', '775', 'K', 'y', 's', 'd', 't', 's', '7533', '1371', '3701']
Output (English): X