Task: Program Execution
Input (English): 1, 3, ['3199', 'G', 'S']
Output (English): SG3199