Task: Program Execution
Input (English): 5, 5, ['R', '4839', 'v', '7507', '9939']
Output (English): 9939