Task: Program Execution
Input (English): r, a, 8731, W, n, k, 9249
Output (English): 1, 2, 4, 5, 6