Task: Program Execution
Input (English): 3035, 6369, N, 5251, 3569, 3433, A, n, g, Y, 9077, 7581, w, E, S
Output (English): 38315