Task: Program Execution
Input (English): 8, 14, ['6331', '8143', '2237', '3101', '9355', 'N', '3141', '8473', '1125', 'A', 'J', '3661', '1185', 'D']
Output (English): 8473, 1125, A, J, 3661, 1185, D