Task: Program Execution
Input (English): 2, 8, ['A', 'P', 'T', '1995', '4121', '7299', 'A', '8099', '5921', '8807', '3979', 't', 'd', 'u', '3155', 'm', '5017']
Output (English): P, 8807