Task: Program Execution
Input (English): n, 249, u, r, k
Output (English): 2, 4, 9