Task: Program Execution
Input (English): 6, 9, ['X', 'X', '319', '9597', '287', 'X', '4595', '2047', 's', 'q', 'I', 'J', 'i', 'Z', 'k', '3555', '917', '25', 'n', 'X', 'p', 'd', '6795', 'i', 'I', 'S', '977', '2071']
Output (English): X, 4595, 2047, s