Task: Program Execution
Input (English): 2, 5, ['X', '1857', '1407', 'D', '8247', '6679', 's']
Output (English): 11511