Task: Program Execution
Input (English): I, G, 7007, 4345, B, 9857, 4411, 7427, t, R, 5787, 1685, Q
Output (English): 40519