Task: Program Execution
Input (English): 4, 8, ['P', 'M', '5631', '5517', '7479', 'r', '367', '3033', 'L']
Output (English): 5517, 7479, r, 367, 3033