Task: Program Execution
Input (English): 2, 6, ['M', '1499', '2637', '4281', '5775', '4831', '3829', '6293', 'E', 'T', '79', 'G']
Output (English): 1499, 6293