Task: Program Execution
Input (English): a, h, 9761, j, p
Output (English): 1, 8, 9761, 10, 16