Task: Program Execution
Input (English): 2, 6, ['2355', 'P', '3295', 'A', '2643', '3645']
Output (English): 3645, 2643, A, 3295, P