Task: Program Execution
Input (English): 3, 3, ['2791', '8063', 'V', '3163', 'K', '415', '5471', '6451', '8575']
Output (English): V