Task: Program Execution
Input (English): q, 1237, 9243, 1665, i, 5803, 3951, 4121, 4743, i, 8393, 1545, L, g, B
Output (English): 40701