Task: Program Execution
Input (English): 3, 5, ['6559', '3197', '6247', '1157', '7251', '207', 'm', '4699', 'V', '1617', '1457', '5571', 'S', '65']
Output (English): 6247, 1157, 7251