Task: Program Execution
Input (English): V, d, m, F, 4709, w, r
Output (English): 1, 2, 3, 4, 6, 7