Task: Program Execution
Input (English): a, Y, 5941, 5125, 3971, 4749, H
Output (English): 1, 25, 5941, 5125, 3971, 4749, 8