Task: Program Execution
Input (English): 3, 3, ['N', '2915', '3263', '8109', 'J']
Output (English): 3263