Task: Program Execution
Input (English): 7373 2001 N L 8581 b R c I 8507 2537 9929 N 3013 6021 O 6727 7083 3003 23 r g 3335 j E O E w k 2115 7659 1721 4165 g 3817 a c T H 5027
Output (English): 1, 2, 5, 10, 11, 12, 14, 15, 17, 18, 19, 20, 23, 30, 31, 32, 33, 35, 40