Task: Program Execution
Input (English): 3705 R c G 7397 3197 O G W d 903 553 M h 6153 3423 l 5017 k 4399 3573 2293 u 6199 1327 R X l 6699 9501 857 Y 507 z 2255
Output (English): 3705, 18, 3, 7, 7397, 3197, 15, 7, 23, 4, 903, 553, 13, 8, 6153, 3423, 12, 5017, 11, 4399, 3573, 2293, 21, 6199, 1327, 18, 24, 12, 6699, 9501, 857, 25, 507, 26, 2255