Task: Program Execution
Input (English): 1, 1, ['5141', 'S']
Output (English): 5141