Task: Program Execution
Input (English): 3, 3, ['F', '11', '4957', '35']
Output (English): 4957