Task: Program Execution
Input (English): 2935, 4989, G, L, U
Output (English): 7924