Task: Program Execution
Input (English): 4397, W, E, 6151, N, 2345, 4341, P, X
Output (English): 17234