Task: Program Execution
Input (English): 3, 11, ['g', 't', '4627', 's', 'J', '9027', '6307', 'N', '291', '7789', '8815']
Output (English): 36856