Task: Program Execution
Input (English): 1, 3, ['3869', 'P', 'S']
Output (English): SP9683