Task: Program Execution
Input (English): 3, 3, ['5973', 'n', 'p', '8107', '6699', '4719']
Output (English): p