Task: Program Execution
Input (English): 2, 6, ['t', '2977', '8919', 'g', '8787', '369']
Output (English): 2977, 8919, g, 8787, 369