Task: Program Execution
Input (English): H 4841 B 567 3159 E 3503 B q 1059 7867 2173 9495 8919 M Q 9019 h 5783 B 7381 5713 5897 K f
Output (English): 8, 4841, 2, 567, 3159, 5, 3503, 2, 17, 1059, 7867, 2173, 9495, 8919, 13, 17, 9019, 8, 5783, 2, 7381, 5713, 5897, 11, 6