Task: Program Execution
Input (English): 3, 3, ['e', '8291', 'S', 'x', 'h', 'F', '5397', '9327', '4819']
Output (English): S