Task: Program Execution
Input (English): P 9355 4713 4481 q Q 7693 1681 p 4313 t 8005 8517 F C 8511 w y 2813 7371 9965 37 2797 w c d r A 3413 9629
Output (English): 16, 9355, 4713, 4481, 17, 17, 7693, 1681, 16, 4313, 20, 8005, 8517, 6, 3, 8511, 23, 25, 2813, 7371, 9965, 37, 2797, 23, 3, 4, 18, 1, 3413, 9629