Task: Program Execution
Input (English): 1, 2, ['6173', '6347', 'a', 'P']
Output (English): 6173, a