Task: Program Execution
Input (English): D, 5207, E, 119, g, 2991, G, g, u
Output (English): 8317