Task: Program Execution
Input (English): 2653 L 215 9997 Q 815 8941 R 1889 9621 2089 T 1433 x a 5019 5455 9667 1479 x H h W V 1687 c 7383 7475
Output (English): 2653, 12, 215, 9997, 17, 815, 8941, 18, 1889, 9621, 2089, 20, 1433, 24, 1, 5019, 5455, 9667, 1479, 24, 8, 8, 23, 22, 1687, 3, 7383, 7475