Task: Program Execution
Input (English): 8635, 9653, E, 5579, N, 9017, m, W, 6101, J, N, 8943, 627, 5111, d, 3465, 3749, 6077
Output (English): 7