Task: Program Execution
Input (English): a, 181, a, g, v, 401
Output (English): 0, 1, 4, 8