Task: Program Execution
Input (English): 4, 4, ['i', 'f', 'Y', 'X']
Output (English): X