Task: Program Execution
Input (English): r 1555 1875 W 1295 6513 M 8051 8949 y O 1929 25 2495 o 2049 2751 7287 531 3215 S W O 4165 3309
Output (English): 18, 1555, 1875, 23, 1295, 6513, 13, 8051, 8949, 25, 15, 1929, 25, 2495, 15, 2049, 2751, 7287, 531, 3215, 19, 23, 15, 4165, 3309