Task: Program Execution
Input (English): 3, 5, ['g', '4461', 'G', 'M', 'q']
Output (English): q, M, G