Task: Program Execution
Input (English): S, a, y, 4027, 655, A, 5069
Output (English): 9751