Task: Program Execution
Input (English): Y, d, v, 2117, 1373, 5587, 4233, f, V, 4731, 1691
Output (English): 1, 2, 3, 8, 9