Task: Program Execution
Input (English): 2471 d S 1417 Q m 7803 7559 M 99 6603 t 4777 K c K 793 H 1229 1509 677 5239 A 7965 2709 2235 h U Z V 9871 7903 681 p 4981 1763 h
Output (English): 2471, 4, 19, 1417, 17, 13, 7803, 7559, 13, 99, 6603, 20, 4777, 11, 3, 11, 793, 8, 1229, 1509, 677, 5239, 1, 7965, 2709, 2235, 8, 21, 26, 22, 9871, 7903, 681, 16, 4981, 1763, 8