Task: Program Execution
Input (English): 2, 5, ['167', 'W', 'J', 'D', '7157', '8783', '1837']
Output (English): W, J, D, 7157