Task: Program Execution
Input (English): 5, 5, ['2583', 'v', '2457', '9775', 'O', '3481', '7163', 'p']
Output (English): O