Task: Program Execution
Input (English): G, n, S, u, 5749, 6573, 8391
Output (English): 7, 14, 19, 21, 5749, 6573, 8391