Task: Program Execution
Input (English): 3, 5, ['9083', '7889', '8911', '3701', 'M', '4173', '7801']
Output (English): M, 3701, 8911