Task: Program Execution
Input (English): 5, 8, ['P', 'C', '2261', 'A', '6523', '241', 'R', '1717', '4679', 'K', '7169']
Output (English): 1717, R, 241, 6523