Task: Program Execution
Input (English): 2, 8, ['7291', 'G', 'J', '4313', '2489', 'W', '1325', 'K', 'h', 'G', 'g', '6777']
Output (English): 8127