Task: Program Execution
Input (English): A 307 z e Z 5847 S A x H 8659 h h 4247 31 p Y 6561 699 8383 6955 k R 4723 9983 v 3153 p 3521 H R L
Output (English): 1, 307, 26, 5, 26, 5847, 19, 1, 24, 8, 8659, 8, 8, 4247, 31, 16, 25, 6561, 699, 8383, 6955, 11, 18, 4723, 9983, 22, 3153, 16, 3521, 8, 18, 12