Task: Program Execution
Input (English): a, c, 399, 161, 443, h, g, s
Output (English): 1, 3, 4, 6, 9