Task: Program Execution
Input (English): N 4909 y E W 1353 h H 273 3715 1615 d X M 4837 341 9919 J 3183 F B w 897 o 1149 D 3453 3473 t a m g 2089 1921 3887 O
Output (English): 1, 3, 4, 5, 7, 8, 12, 13, 14, 18, 20, 21, 22, 24, 26, 29, 30, 31, 32, 36