Task: Program Execution
Input (English): 7023 4739 P 3485 W w 4445 M X 4063 423 1833 2593 1629 A 6803 d 2597 249 1677 3749 9225 5087 9927 4241 K
Output (English): 7023, 4739, 16, 3485, 23, 23, 4445, 13, 24, 4063, 423, 1833, 2593, 1629, 1, 6803, 4, 2597, 249, 1677, 3749, 9225, 5087, 9927, 4241, 11