Task: Program Execution
Input (English): G, g, 9911, 4163, 4593, 5847, 5811, 5725, I, o, U, 8213, 7207
Output (English): 51470