Task: Program Execution
Input (English): 4, 15, ['q', 'O', 'h', 'J', 'W', '3509', '8307', 'k', '9749', 'e', '7217', 'y', '4945', '3239', '471', 'Z', '5549', '5107', '3189']
Output (English): 471, 3239, 4945, y, 7217, e, 9749, k, 8307, 3509, W, J