Task: Program Execution
Input (English): G, 5491, g, i, Z, 8045, 8825
Output (English): 22361