Task: Program Execution
Input (English): 1, 2, ['5931', '8417', '7765', 'N', '5041', 'M', 'p']
Output (English): 8417, 5931