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