Task: Program Execution
Input (English): L 5053 M c R 631 r 7589 4503 M R V 5589 6783 9933 W r C i 4971 3499 w 1319 5381 J 915 6471 8581 3555 8639 B J 3737 F Z N 7101 p
Output (English): 1, 3, 4, 5, 7, 10, 11, 12, 16, 17, 18, 19, 22, 25, 31, 32, 34, 35, 36, 38