Task: Program Execution
Input (English): f, 141, 399, g, 107, d, r, l, b, 139, k, q
Output (English): 0, 1, 3, 4, 7, 9