Task: Program Execution
Input (English): 2, 6, ['519', 'c', '339', '6107', 'z', '5851', 'j', 'j']
Output (English): 5851, z, 6107, 339, c