Task: Program Execution
Input (English): 6, 18, ['p', '3373', 'X', 'M', '515', '1991', '1437', 'P', '3045', '8929', '9797', '7673', 'N', 'P', 'Y', 'e', '7549', 'Y', 'g']
Output (English): 1991, 1437, P, 3045, 8929, 9797, 7673, N, P, Y, e, 7549, Y