Task: Program Execution
Input (English): 3427, 623, W, 7629, E, 5337, 1515, W, 5859
Output (English): W, E, W