Task: Program Execution
Input (English): 3, 8, ['137', '1951', '1703', '8585', 'X', 'D', 'd', 'W', 'a']
Output (English): W, d, D, X, 8585, 1703