Task: Program Execution
Input (English): y, 7053, 5843, 2151, a, 6315, 5981, E, W, S, y, 9999
Output (English): 25, 7053, 5843, 2151, 1, 6315, 5981, 5, 23, 19, 25, 9999