Task: Program Execution
Input (English): 4409, 417, 6945, V, p, 7247, 6433, 7725, q, 2225, 1609
Output (English): 37010