Task: Program Execution
Input (English): 2, 5, ['o', '9845', '7449', '1751', '3737', '4521', 'P', 'V']
Output (English): 3737175174499845