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