Task: Program Execution
Input (English): 2, 3, ['7613', '7367', 'S']
Output (English): S, 7367