Task: Program Execution
Input (English): W, N, q, 2141
Output (English): 23, 14, 17, 2141