Task: Program Execution
Input (English): n, 187, a, 77, t, 409, p, g, c, v, 111
Output (English): 0, 1, 4, 7, 8, 9