Task: Program Execution
Input (English): 6, 7, ['R', 'K', '1869', '1315', '2619', 'P', '4871', '7589']
Output (English): 1784P