Task: Program Execution
Input (English): 2, 2, ['S', '4041']
Output (English): 4041