Task: Program Execution
Input (English): 6, 10, ['903', 'p', '4633', '6735', '5981', 'z', 'L', '9709', '8735', 'q', 's', '5103', 'P', 'M', '315', '3953', '4209']
Output (English): 18444