Task: Program Execution
Input (English): 2157, 3477, 1459, 121, N, W, 8775, 963, 1687, 3891, E, X, 5563, 51, 9139, a, 8601, 6955, X, 7655, 9849, a, 9187, 8249
Output (English): 17