Task: Program Execution
Input (English): 3197 5045 M 7061 Z 8929 4635 9219 r V 4009 4425 1715 4003 S 4885 I 8903 A 1807 J 4529 D 5373 R 6513 2537 j T y L 6587 979 m l T 5373 7589
Output (English): 1, 2, 4, 6, 7, 8, 11, 12, 13, 14, 16, 18, 20, 22, 24, 26, 27, 32, 33, 37, 38