Task: Program Execution
Input (English): A, 8103, 2045, g, 5329, X
Output (English): 15477