Task: Program Execution
Input (English): V, m, G, 9659, q, n, 8315, h
Output (English): 1, 2, 3, 5, 6, 8