Task: Program Execution
Input (English): 313, x, 417, v
Output (English): 1, 3, 4, 7