Task: Program Execution
Input (English): 7, 10, ['5947', '711', 'B', 'P', '6261', 'H', '4863', 'R', 'F', 'r']
Output (English): rFR4863