Task: Program Execution
Input (English): n, v, 763, 6945, g, k, b, M, F, q, 5399, g
Output (English): 14, 22, 763, 6945, 7, 11, 2, 13, 6, 17, 5399, 7