Task: Program Execution
Input (English): x, N, 9201, 283, E, W, U, 59, j, 8977, 6695, 189, 299, 6731
Output (English): 8