Task: Program Execution
Input (English): 5931 4885 5575 5573 b T 6303 7807 A 1403 a 1759 B 5029 C a 3715 5063 8651 8143 a q C 7321 Y
Output (English): 5931, 4885, 5575, 5573, 2, 20, 6303, 7807, 1, 1403, 1, 1759, 2, 5029, 3, 1, 3715, 5063, 8651, 8143, 1, 17, 3, 7321, 25