Task: Program Execution
Input (English): W, n, 5135, x, b
Output (English): 1, 2, 4, 5