Task: Program Execution
Input (English): A, 3849, 9981, 7567
Output (English): 21397