Task: Program Execution
Input (English): 2, 8, ['m', 'F', 'm', 't', '793', 'q', 'Y', 'M']
Output (English): Fmt793qYM