Task: Program Execution
Input (English): 2841 4223 R 2231 L n w M 6365 m 4333 j 3955 8953 7615 1431 H 2993 7623 d 2545 5929 I 243 6937 V 8415 E 9009 2197 G c M H B 7831
Output (English): 2841, 4223, 18, 2231, 12, 14, 23, 13, 6365, 13, 4333, 10, 3955, 8953, 7615, 1431, 8, 2993, 7623, 4, 2545, 5929, 9, 243, 6937, 22, 8415, 5, 9009, 2197, 7, 3, 13, 8, 2, 7831