Task: Program Execution
Input (English): 2, ['1477', '9961', 'r', 'P']
Output (English): 1477, 9961