Task: Program Execution
Input (English): 5, 9, ['g', 'M', '4701', 'T', '5051', 'P', '8773', '9505', '7503', 'k', 'i', '1309', 'n', 'Q']
Output (English): 5051, P, 8773, 9505, 7503