Task: Program Execution
Input (English): 3, 3, ['c', '385', 'S', 'a', '2949', 'n', '4937', '1353']
Output (English): S