Task: Program Execution
Input (English): 4, 9, ['a', '231', '1001', 'G', 'R', '3747', '9917', 'M', 'N', '2063', 'h', 'w']
Output (English): N, M, 9917, 3747, R, G