Task: Program Execution
Input (English): n, g, k, i, 413, i, l, m, m, q, 137, 231, o, v, u
Output (English): 1, 2, 3, 4, 7