Task: Program Execution
Input (English): 6001 r B 2189 W 2965 t 7013 N w K 3401 7931 o 4975 2065 N n M C 8821 x j 9641 Q f q
Output (English): 6001, 18, 2, 2189, 23, 2965, 20, 7013, 14, 23, 11, 3401, 7931, 15, 4975, 2065, 14, 14, 13, 3, 8821, 24, 10, 9641, 17, 6, 17