Task: Program Execution
Input (English): 2935 6089 7797 R 9981 9325 o X o 3815 6491 n 2777 8641 1141 w 9839 3251 1625 5821 d 5115 Y N 9247 8031 4693 D
Output (English): 2935, 6089, 7797, 18, 9981, 9325, 15, 24, 15, 3815, 6491, 14, 2777, 8641, 1141, 23, 9839, 3251, 1625, 5821, 4, 5115, 25, 14, 9247, 8031, 4693, 4