Task: Program Execution
Input (English): y, 1775, 2877, o, d, 2185, N, S
Output (English): y, o, d, N, S