Task: Program Execution
Input (English): 5, 7, ['6003', '4489', 'N', '8635', 'M', '3287', 'd', 'x', 'D', 'w', '7945', '8603', 'p', 'R', 'c', '5995', 'e']
Output (English): d, 3287, M