Task: Program Execution
Input (English): 7, 15, ['349', '8475', '123', '967', 'Q', '8323', '3161', 'X', '8349', 'w', 'K', 'U', 'w', '6183', '8647', '795', '3265']
Output (English): 8647, 6183, w, U, K, w, 8349, X, 3161