Task: Program Execution
Input (English): 4, 15, ['101', 's', '8165', '5971', 'z', 'S', '2049', '7219', 'D', 'x', '2255', 'N', '9747', 'C', '3071', '6637', '4645', 'c', 'm', '8789', '4123', '7645']
Output (English): 30312